| Package | Description |
|---|---|
| net.sf.mmm.util.event.api |
Provides the API for a generic event-handling.
|
| net.sf.mmm.util.event.base |
Contains the abstract base-implementation of the
event-handling API. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
EventSource<E extends Event,L extends EventListener<E>>
This interface allows listeners to be registered and unregistered.
|
| Modifier and Type | Method and Description |
|---|---|
static <E> EventListener<E> |
EventListenerIgnore.getInstance() |
| Modifier and Type | Method and Description |
|---|---|
<E> void |
EventBus.addListener(Class<E> eventType,
EventListener<E> listener)
This method registers a listener that is interested in
Events. |
boolean |
EventBus.removeListener(EventListener<?> listener)
This method removes a listener.
|
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractEventSource<E extends Event,L extends EventListener<E>>
This is the abstract base implementation of the
EventListener interface. |
class |
AbstractMultiThreadedEventSource<E extends Event,L extends EventListener<E>>
This class extends
AbstractSynchronizedEventSource with the ability to send events asynchronous in
separate Threads. |
class |
AbstractSynchronizedEventSource<E extends Event,L extends EventListener<E>>
This class extends
AbstractEventSource with the ability of synchronization and therefore is
thread-safe. |
| Modifier and Type | Field and Description |
|---|---|
private EventListener<E> |
AbstractEventBus.EventListenerContainer.eventListener |
| Modifier and Type | Method and Description |
|---|---|
EventListener<E> |
AbstractEventBus.EventListenerContainer.getEventListener() |
| Modifier and Type | Method and Description |
|---|---|
<E> void |
AbstractEventBus.addListener(Class<E> eventType,
EventListener<E> listener)
This method registers a listener that is interested in
Events. |
boolean |
AbstractEventBus.removeListener(EventListener<?> listener)
This method removes a listener.
|
| Constructor and Description |
|---|
EventListenerContainer(Class<E> eventType,
EventListener<E> eventListener)
The constructor.
|
Copyright © 2001–2015 mmm-Team. All rights reserved.