public class Ticino extends Object
register
with an event class and a receiver providing an accessible public method that
has the event class as sole parameter:
Ticino.register(MyEvent.class, new Object() {
public void myReceiverMethod(MyEvent evt) {
// do something meaningful
}
});
This static EventScope is bound to the class loader, not to the vm.
Hence, events dispatched in one jee application will not necessarily get
passed to receivers registered in another application on the same container
instance.public static EventScope getScope()
public static void dispatch(Object event)
Copyright © 2014. All Rights Reserved.