public interface ServiceListener
extends java.util.EventListener
A ServiceListener understands events that occur during the lifetime of a Service. These events include starting and stopping the service. These events also carry information about the Service's environment, such as the Nucleus running this Service, and the Configuration that created this Service.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Modifier and Type | Method and Description |
---|---|
void |
startService(ServiceEvent pEvent)
Starts the service running.
|
void |
stopService()
Stops the service.
|
static final java.lang.String CLASS_VERSION
void startService(ServiceEvent pEvent) throws ServiceException
pEvent
- the ServiceEvent encapsulating information about
the Service's environment and configurationServiceException
- if an error occurred while attempting
to start the service.void stopService() throws ServiceException
ServiceException
- if an error occurred while attempting
to stop the service.