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
Object.equals(Object) and Object.hashCode() method.
| Modifier and Type | Method and Description |
|---|---|
default Optional<String> |
getScope() |
Set<Class<?>> |
getSupportedEventTypes()
The types of events supported by this invoker.
|
void |
invoke(Object event)
Invokes the underlying listener for the given event.
|
boolean |
supportAsynchronousEvents()
Whether or not the underlying listener can handle asynchronous event.
|
Set<Class<?>> getSupportedEventTypes()
invoke(Object) can be safely called with any object
that is an instance of at least one of those types.void invoke(Object event)
event - the event to tell the listener about.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 otherwiseCopyright © 2006-2018 Atlassian. All Rights Reserved.