public class EventListenerRegistration
extends java.lang.Object
IEventListener
that extracts any metadata from the notification listener that may
be used in event handling.IEventListener
,
IEventService
Modifier and Type | Class and Description |
---|---|
static class |
EventListenerRegistration.RegistrationListenerConfiguration<T extends EventListenerRegistration.RegistrationListenerConfiguration<T>>
A registration configuration for listeners.
|
Modifier and Type | Field and Description |
---|---|
static IEventMatcher |
ALLOW_ALL_MATCHER
A matcher that matches all events.
|
Modifier | Constructor and Description |
---|---|
protected |
EventListenerRegistration(IEventListener listener)
Constructs the registration for the specified listener.
|
protected |
EventListenerRegistration(IEventListener listener,
IEventMatcher matcher)
Constructs the registration for the specified listener with the specified event matcher.
|
Modifier and Type | Method and Description |
---|---|
static EventListenerRegistration.RegistrationListenerConfiguration |
configure(IEventListener listener)
Creates a new registration configuration for the provided listener.
|
IEventMatcher |
getEventMatcher() |
IEventListener |
getListener() |
public static final IEventMatcher ALLOW_ALL_MATCHER
protected EventListenerRegistration(IEventListener listener)
listener
- the listenerprotected EventListenerRegistration(IEventListener listener, IEventMatcher matcher)
listener
- the listener.matcher
- the event matcher.public static EventListenerRegistration.RegistrationListenerConfiguration configure(IEventListener listener)
listener
- the listener to configurepublic IEventListener getListener()
public IEventMatcher getEventMatcher()