com.sibvisions.rad.persist.event
Class StorageEventHandler<L>

java.lang.Object
  extended by javax.rad.util.EventHandler<L>
      extended by 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.


Nested Class Summary
 
Nested classes/interfaces inherited from class javax.rad.util.EventHandler
EventHandler.ListenerHandler
 
Constructor Summary
StorageEventHandler(java.lang.Class<L> pListenerType)
          Constructs a new EventHandler, the listener type may only have 1 method.
 
Method Summary
 java.lang.Object dispatchEvent(java.lang.Object... pEventParameter)
          Dispatches the given events to all listeners.
 
Methods inherited from class javax.rad.util.EventHandler
addHandler, addListener, addListener, addListener, addListener, addListener, createListener, getCurrentDispatchObject, getDefaultListener, getLastDispatchedObject, getListener, getListenerCount, getListeners, getWrappedException, getWrappedExceptionAllowSilent, isDispatchable, isDispatchable, isDispatchEventsEnabled, removeAllListeners, removeHandler, removeListener, removeListener, removeListener, setDefaultListener, setDefaultListener, setDispatchEventsEnabled
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StorageEventHandler

public StorageEventHandler(java.lang.Class<L> pListenerType)
Constructs a new EventHandler, the listener type may only have 1 method.

Parameters:
pListenerType - the listener type interface.
Method Detail

dispatchEvent

public java.lang.Object dispatchEvent(java.lang.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.