E - The event type.O - the generic typeEM - the generic typepublic class ObserverDescriptorImpl<E extends GenericEvent<?>,O extends Observer<E>,EM extends EventMatcher<E>> extends Object implements ObserverDescriptor<E,O,EM>
| Constructor and Description |
|---|
ObserverDescriptorImpl(O aEventListener,
EM aEventMatcher)
Constructs the event listener descriptor with the given event listener
and the given event matcher.
|
| Modifier and Type | Method and Description |
|---|---|
EM |
getEventMatcher()
Returns the
EventMatcher associated with the given
Observer. |
O |
getObserver()
Returns the
Observer associated with the given
EventMatcher. |
void |
onEvent(E aEvent)
The listener implementing this interface is notified of an event via this
method.
|
public ObserverDescriptorImpl(O aEventListener, EM aEventMatcher)
aEventListener - The listener to be stored in the event listener
descriptor.aEventMatcher - The matcher to be stored in the event listener
descriptor.public void onEvent(E aEvent)
onEvent in interface Observer<E extends GenericEvent<?>>aEvent - aEvent The event to be pushed from the publisher to the
subscriber.public O getObserver()
Observer associated with the given
EventMatcher.getObserver in interface ObserverDescriptor<E extends GenericEvent<?>,O extends Observer<E>,EM extends EventMatcher<E>>Observer as it is being managed by the
ObserverDescriptor.public EM getEventMatcher()
EventMatcher associated with the given
Observer.getEventMatcher in interface ObserverDescriptor<E extends GenericEvent<?>,O extends Observer<E>,EM extends EventMatcher<E>>EventMatcher as it is being managed by the
ObserverDescriptor.Copyright © 2018. All rights reserved.