atg.endeca.assembler.content
Class ExtendedWorkbenchContentSource
java.lang.Object
WorkbenchContentSource
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ExtendedWorkbenchContentSource
public ExtendedWorkbenchContentSource()
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