|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
This interface is responsible for managing the services of an application context. Services are configured and initialized by this class based on a xml configuration tree.
| Method Summary | |
IService |
addService(org.jdom.Element config)
Add dynamically a new service. |
void |
addService(IService service,
java.lang.String serviceName)
Add dynamically a new service. |
void |
configure(org.jdom.Element configuration)
Start the services found in the given configuration |
java.lang.String[][] |
getSecurityObjects()
|
IService |
getService(java.lang.String serviceName)
Return the service with the given name |
java.util.Iterator |
getServices()
Returns all services for the user |
void |
removeService(java.lang.String serviceName)
Add dynamically a new service. |
void |
resumeService(java.lang.String serviceName,
ITicket ticket)
Try to resume a service |
void |
shutdownService(java.lang.String name,
ITicket ticket)
Shut down a service. |
void |
start(ITicket ticket)
Tries to start the configured services. |
void |
startService(java.lang.String name,
ITicket ticket)
Start the service with the given root configuration |
void |
stop(ITicket ticket)
Tries to start the configured services. |
void |
suspendService(java.lang.String serviceName,
ITicket ticket)
Try to suspend a service. |
| Method Detail |
public void configure(org.jdom.Element configuration)
throws ConfigurationException
configuration - the configuration containing other service configurationsServiceConfigurationException - If the configuration is missing or invalidpublic java.lang.String[][] getSecurityObjects()
public void start(ITicket ticket)
throws ServiceInitializationException,
ServiceRuntimeException
ServiceInitializationException - One or more services are initialized well.
Well initialize services should all be started.
public void stop(ITicket ticket)
throws ServiceInitializationException,
ServiceRuntimeException
ServiceInitializationException - One or more services are initialized well.
Well initialize services should all be started.
public void suspendService(java.lang.String serviceName,
ITicket ticket)
throws ServiceRuntimeException,
ServiceNotFoundException,
java.lang.SecurityException
The - service nameThe - user ticketServiceRuntimeException - If the service failed to suspendjava.lang.SecurityException - If access was denied.
public void resumeService(java.lang.String serviceName,
ITicket ticket)
throws ServiceRuntimeException,
ServiceNotFoundException,
java.lang.SecurityException
The - service nameThe - user ticketServiceRuntimeException - If the service failed to resumejava.lang.SecurityException - If access was denied.
public void startService(java.lang.String name,
ITicket ticket)
throws ServiceInitializationException,
ServiceNotFoundException,
java.lang.SecurityException
serviceRoot - the configuration root for this serviceServiceInitializationException - If the service could not startedServiceNotFoundException - If the service could not be locatedjava.lang.SecurityException - If access was denied.
public void shutdownService(java.lang.String name,
ITicket ticket)
throws ServiceRuntimeException,
java.lang.SecurityException,
ServiceNotFoundException
The - service nameThe - user ticketServiceRuntimeException - If the service could not be shut ownServiceNotFoundException - If the service could not be locatedjava.lang.SecurityException - If access was denied.
public IService getService(java.lang.String serviceName)
throws java.lang.SecurityException
serviceName - The name of the service to returnThe - user ticketServiceNotFoundException - If the service could not be locatedjava.lang.SecurityException - If access was denied.public java.util.Iterator getServices()
public void addService(IService service,
java.lang.String serviceName)
service - The new serviceserviceName - The service name under which the service should registeredticket - The system user who must WRITE access to the factorypublic IService addService(org.jdom.Element config)
config - The XML config subtree for the service
public void removeService(java.lang.String serviceName)
throws ServiceNotFoundException
serviceName - The service name under which the service should registeredticket - The system user who must WRITE access to the factoryjava.lang.SecurityException - If access was denied or a service with
the same name is running yetServiceNotFoundException - If the service could not be found
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||