public class IlvHashedEventService extends Object implements IlvEventService
IlvHashedEventService provides dispatching of arbitrary events
to registered GenericEventListeners based on the event class
and the object that fired the event.| Constructor and Description |
|---|
IlvHashedEventService()
Creates a new
IlvHashedEventService. |
| Modifier and Type | Method and Description |
|---|---|
void |
addListener(GenericEventListener listener)
Adds the specified listener so that it receives all events published by
this event service.
|
void |
addListener(GenericEventListener listener,
Class eventType)
Adds the specified
listener so that it receives those events
published by this event service that are of the specified eventType. |
void |
addListener(GenericEventListener listener,
Object eventSource)
Adds the specified
listener so that it receives those events
published by this event service whose source is eventSource. |
void |
addListener(GenericEventListener listener,
Object eventSource,
Class eventType)
Adds the specified
listener so that it receives those events
published by this event service whose source is eventSource
and that are also of the specified eventType. |
void |
publish(EventObject event)
Publishes an event to all registered listeners.
|
void |
removeListener(GenericEventListener listener)
Removes the specified
listener so that it no longer receives
any events published by this event service. |
public IlvHashedEventService()
IlvHashedEventService.public void addListener(GenericEventListener listener)
listener may already have with this event
service.addListener in interface IlvEventDispatcherlistener - The listener which will be subscribed to all subsequent
events.public void addListener(GenericEventListener listener, Object eventSource)
listener so that it receives those events
published by this event service whose source is eventSource.
This subscription is in addition to any other subscriptions that
listener may already have with this event service.addListener in interface IlvEventServicelistener - The listener which will be subscribed to subsequent events.eventSource - The original source of events that listener
is subscribing to. If null, then listener will be
subscribed to events from all sources.public void addListener(GenericEventListener listener, Class eventType)
listener so that it receives those events
published by this event service that are of the specified eventType.
This subscription is in addition to any other subscriptions that
listener may already have with this event service.addListener in interface IlvEventServicelistener - The listener which will be subscribed to subsequent events.eventType - The class of events that listener is
interested in. If null, then listener will be
subscribed to all event types.public void addListener(GenericEventListener listener, Object eventSource, Class eventType)
listener so that it receives those events
published by this event service whose source is eventSource
and that are also of the specified eventType. This subscription
is in addition to any other subscriptions that listener may
already have with this event service.addListener in interface IlvEventServicelistener - The listener which will be subscribed to subsequent events.eventSource - The original source of events that listener
is subscribing to. If null, then listener will be
subscribed to events from all sources.eventType - The class of events that listener is
interested in. If null, then listener will be
subscribed to all event types.public void removeListener(GenericEventListener listener)
listener so that it no longer receives
any events published by this event service.removeListener in interface IlvEventDispatcherlistener - The listener which will be unsubscribed from receiving
GenericEventListener events.public void publish(EventObject event)
publish in interface IlvEventDispatcherevent - The event.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.