|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
@InterfaceAudience.Private public interface Service
Service interface for components to be managed by the Server class.
| Method Summary | |
|---|---|
void |
destroy()
Destroy the services. |
Class |
getInterface()
Returns the interface implemented by this service. |
Class[] |
getServiceDependencies()
Returns the service dependencies of this service. |
void |
init(Server server)
Initializes the service. |
void |
postInit()
Post initializes the service. |
void |
serverStatusChange(Server.Status oldStatus,
Server.Status newStatus)
Notification callback when the server changes its status. |
| Method Detail |
|---|
void init(Server server)
throws ServiceException
Server owning the service is being initialized.
server - the server initializing the service, give access to the
server context.
ServiceException - thrown if the service could not be initialized.
void postInit()
throws ServiceException
Server after all services of the server have been initialized.
ServiceException - thrown if the service could not be
post-initialized.void destroy()
Server owning the service is being destroyed.
Class[] getServiceDependencies()
Class getInterface()
Server when the Server.get(Class) method is used to
retrieve a service.
void serverStatusChange(Server.Status oldStatus,
Server.Status newStatus)
throws ServiceException
oldStatus - old server status.newStatus - new server status.
ServiceException - thrown if the service could not process the status change.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||