fortuity-developer Mailing List for Fortuity Event Framework
Status: Beta
Brought to you by:
tyc-pros
You can subscribe to this list here.
2010 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
---|
From: Jeroen S. <j.s...@gm...> - 2010-01-05 07:58:25
|
I have just finished deploying Fortuity 1.0.1 to our Maven repository. This is pretty much a maintenance release, though there is a small break in API with regard to 1.0.0. The EventContext class now takes an Event as type parameter, rather than whatever object was the type parameter of the event it was wrapping. So, given the following event: public class FooEvent implements Event<String> { private String source; public FooEvent(String source) { this.source = source; } @Override public String getSource() { return source; } } Then in 1.0.0 you would do: @OnFortuityEvent(FooEvent.class) public void handleFoo(EventContext<String> context) { // Your logic here } But in 1.0.1 it becomes: @OnFortuityEvent(FooEvent.class) public void handleFoo(EventContext<FooEvent> context) { // Your logic here } |