|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectwt.services.ServiceEventListenerAdapter
public class ServiceEventListenerAdapter
An implementation of KeyedEventListener used by services to handle service
events. This adapter adds an operation called logNotification which
writes event information to the log. This class also provides default
notification methods which log the notifications when wt.services.VERBOSE_EVENTS
is set to true. Subclasses may override the notification methods but
should honor the logging contract when wt.services.VERBOSE_EVENTS is
true.
Supported API: true
Extendable: false
| Constructor Summary | |
|---|---|
ServiceEventListenerAdapter(String serviceId)
Construct ServiceEventListenerAdapter with service id. |
|
| Method Summary | |
|---|---|
void |
notifyEvent(Object eventObject)
Notify the listener that a single-object event has occurred. |
void |
notifyMultiObjectEvent(Object eventObject)
Notify the listener that a multi-object event has occurred. |
void |
notifyVetoableEvent(Object eventObject)
Notify the listener that a single-object event has occurred. |
void |
notifyVetoableMultiObjectEvent(Object eventObject)
Notify the listener that a multi-object event has occurred. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceEventListenerAdapter(String serviceId)
serviceId - String used for identifying the service| Method Detail |
|---|
public void notifyEvent(Object eventObject)
notifyEvent in interface KeyedEventListenereventObject -
public void notifyVetoableEvent(Object eventObject)
throws Exception
notifyVetoableEvent in interface KeyedEventListenereventObject -
Exception - the dispatcher and listener must agree on
the exception type.public void notifyMultiObjectEvent(Object eventObject)
notifyMultiObjectEvent in interface KeyedEventListenereventObject -
public void notifyVetoableMultiObjectEvent(Object eventObject)
throws Exception
notifyVetoableMultiObjectEvent in interface KeyedEventListenereventObject -
Exception - the dispatcher and listener must agree on
the exception type.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||