atg.endeca.assembler.content
Class ExtendedWorkbenchContentSource

java.lang.Object
  extended by WorkbenchContentSource
      extended by atg.endeca.assembler.content.ExtendedWorkbenchContentSource
All Implemented Interfaces:
NameContextBindingListener, ServiceListener, java.util.EventListener

public class ExtendedWorkbenchContentSource
extends WorkbenchContentSource
implements ServiceListener, NameContextBindingListener

This class extends WorkbenchContentSource to implement ServiceListener interface. This allows to call init() method when services is started, and destroy() when it is no longer needed.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
ExtendedWorkbenchContentSource()
           
 
Method Summary
 void nameContextElementBound(NameContextBindingEvent pEvent)
          This is called to notify the listener that an element was bound into the NameContext.
 void nameContextElementUnbound(NameContextBindingEvent pEvent)
          This is called to notify the listener that an element was unbound from the NameContext.
 void startService(ServiceEvent pEvent)
          Starts the service running.
 void stopService()
          Stops the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

ExtendedWorkbenchContentSource

public ExtendedWorkbenchContentSource()
Method Detail

startService

public void startService(ServiceEvent pEvent)
                  throws ServiceException
Description copied from interface: ServiceListener
Starts the service running. This will be called after the service has been placed into the naming hierarchy, and all of its properties have been set.

Specified by:
startService in interface ServiceListener
Parameters:
pEvent - the ServiceEvent encapsulating information about the Service's environment and configuration
Throws:
ServiceException - if an error occurred while attempting to start the service.

stopService

public void stopService()
                 throws ServiceException
Description copied from interface: ServiceListener
Stops the service. This will be called when the Service is being shut down, either by explicit instructions from the administrator, or for various other reasons. A Service should clean up any resources it is using, but should be prepared to restart itself. When asked to restart, its properties may have changed.

Specified by:
stopService in interface ServiceListener
Throws:
ServiceException - if an error occurred while attempting to stop the service.

nameContextElementBound

public void nameContextElementBound(NameContextBindingEvent pEvent)
Description copied from interface: NameContextBindingListener
This is called to notify the listener that an element was bound into the NameContext.

Specified by:
nameContextElementBound in interface NameContextBindingListener

nameContextElementUnbound

public void nameContextElementUnbound(NameContextBindingEvent pEvent)
Description copied from interface: NameContextBindingListener
This is called to notify the listener that an element was unbound from the NameContext.

Specified by:
nameContextElementUnbound in interface NameContextBindingListener