|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface for the manager of a set of services.
Method Summary | |
Service |
getService(java.lang.String name)
Return an instance of specified service. |
serp.util.Options |
getServiceConfig(java.lang.String name)
Return the configuration of a specified service. |
java.lang.Object |
getServiceObject(java.lang.String name)
Get an application-specific service object. |
boolean |
hasRegistered(java.lang.String name)
Determines whether a service is registered. |
void |
init(serp.util.Options opts)
Init the service manager with configurations of all services. |
void |
setServiceObject(java.lang.String name,
java.lang.Object obj)
Set application-specific service object. |
void |
stopService(java.lang.String name)
Stop a specified service. |
void |
stopServices()
Stop all services. |
Method Detail |
public void init(serp.util.Options opts) throws ServiceException
ServiceException
public boolean hasRegistered(java.lang.String name)
public Service getService(java.lang.String name) throws ServiceException
ServiceException
public serp.util.Options getServiceConfig(java.lang.String name) throws ServiceException
ServiceException
public void setServiceObject(java.lang.String name, java.lang.Object obj)
public java.lang.Object getServiceObject(java.lang.String name)
public void stopService(java.lang.String name)
public void stopServices()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |