public interface WCSExternalEventListener
extends java.util.EventListener
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Modifier and Type | Method and Description |
---|---|
void |
destroy()
This method will be invoked by the WebSphere Commerce Suite framework when the WebSphere Commerce Suite environment shuts down.
|
void |
eventOccurred(WCSExternalEventObject evt)
When WebSphere Commerce Suite external events occur, this method will be called to notify all of the registered listeners.
|
void |
init(WCSExternalEventSource source)
This method is invoked by the WebSphere Commerce Suite framework.
|
void |
reinit()
This method is invoked by the WebSphere Commerce Suite framework to notify each registered listener to re-initialize.
|
static final java.lang.String COPYRIGHT
void destroy()
init()
method. It should also unregister from the WCSExternalEventSource.void eventOccurred(WCSExternalEventObject evt) throws WCSException
eventOccurred()
method
of each listener. That means any "unregister" call during this phase will NOT take effect until the current
event handling is complete.evt
- WebSphere Commerce Suite external eventWCSException
void init(WCSExternalEventSource source) throws WCSException
addWCSExternalEventListener()
method.
If errors occur during the listener's initialization, it should not register with the
WCSExternalEventSource but instead throw a WCSException which will be logged into the instance log.source
- WCSExternalEventSource instanceWCSException
void reinit() throws WCSException
WCSException