|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ListenerInvoker
Implementation of this interface know how to invoke 'given types' of listeners so that they handle given events.
Note: Implementations MUST provide correct implementations of the
#equals(Object)
and #hashCode()
method.
Method Summary | |
---|---|
java.util.Set<java.lang.Class<?>> |
getSupportedEventTypes()
The types of events supported by this invoker. |
void |
invoke(java.lang.Object event)
Invokes the underlying listener for the given event. |
boolean |
supportAsynchronousEvents()
Whether or not the underlying listener can handle asynchronous event. |
Method Detail |
---|
java.util.Set<java.lang.Class<?>> getSupportedEventTypes()
invoke(Object)
can be safely called with any object
that is an instance of at least one of those types.
void invoke(java.lang.Object event)
event
- the event to tell the listener about.
java.lang.IllegalArgumentException
- if the event is not an instance of any of the types returned by
getSupportedEventTypes()
boolean supportAsynchronousEvents()
true
if the underlying listener can handle asynchronous events, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |