com.sibvisions.rad.persist.event
Class StorageEventHandler<L>
java.lang.Object
javax.rad.util.EventHandler<L>
com.sibvisions.rad.persist.event.StorageEventHandler<L>
- Type Parameters:
L
- the Listener type
- Direct Known Subclasses:
- StorageHandler
public class StorageEventHandler<L>
- extends EventHandler<L>
The StorageEventHandler
is a EventHandler
that
handles Events, and throws DataSourceExceptions.
Constructor Summary |
StorageEventHandler(Class<L> pListenerType)
Constructs a new EventHandler, the listener type may only have 1 method. |
Methods inherited from class javax.rad.util.EventHandler |
addListener, addListener, addListener, addListener, createListener, getCurrentDispatchObject, getDefaultListener, getLastDispatchedObject, getListener, getListenerCount, getListeners, getWrappedException, getWrappedExceptionAllowSilent, isDispatchEventsEnabled, removeAllListeners, removeListener, removeListener, removeListener, setDefaultListener, setDefaultListener, setDispatchEventsEnabled |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StorageEventHandler
public StorageEventHandler(Class<L> pListenerType)
- Constructs a new EventHandler, the listener type may only have 1 method.
- Parameters:
pListenerType
- the listener type interface.
dispatchEvent
public Object dispatchEvent(Object... pEventParameter)
throws DataSourceException
- Dispatches the given events to all listeners.
- Overrides:
dispatchEvent
in class EventHandler<L>
- Parameters:
pEventParameter
- the event parameter.
- Returns:
- the return value of the deaultListener, if it is called, or null if dispatching is disabled or
no listeners were called
- Throws:
DataSourceException
Copyright © 2009 SIB Visions GmbH. All Rights Reserved.