Package wt.services

Class ServiceEventListenerAdapter

java.lang.Object
wt.services.ServiceEventListenerAdapter
All Implemented Interfaces:
KeyedEventListener
Direct Known Subclasses:
ChangeStatusEventHandler

public class ServiceEventListenerAdapter extends Object implements KeyedEventListener
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: true
  • Constructor Details

    • ServiceEventListenerAdapter

      public ServiceEventListenerAdapter(String serviceId)
      Construct ServiceEventListenerAdapter with service id.

      Supported API: true
      Parameters:
      serviceId - String used for identifying the service