|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface PreEventHandler
Pre Event handlers can be registered to receive events as and when they are generated by IBM Connections. Pre Event handlers are invoked synchronously at a point where the event object they receive is mutable and the handler can modify certain contents. Not all event data can be modified. Implementations of this interface should be valid JavaBeans which provide a public default constructor and public getters and setters for any properties. Only simple properties are supported. The lifecycle of an event handler is as follows:
EventHandlerInitExceptionEventHandlerException
| Method Summary | |
|---|---|
void |
destroy()
Called whenever the application is stopping, to allow handlers to clean up. |
void |
handleEvent(MutableEvent event)
This method will be called whenever an event for which this handler is registered is consumed. |
void |
init()
Will be invoked by IBM Connections after instantiating an instance of this event handler. |
| Method Detail |
|---|
void init()
throws EventHandlerInitException
EventHandlerInitException if there
are any problems. This exception will be logged appropriately, but will
not stop the generation and sending of events or otherwise affect the
running of the system. It will however mean that this handler will not
be invoked subsequently.
EventHandlerInitException - if the handler does not initialize
successfully. This will be logged by the runtime.
void handleEvent(MutableEvent event)
throws EventHandlerException
event - the event to be handled. This event is mutable.
EventHandlerException - if the handling of an event fails. This will be logged.void destroy()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||