|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IServiceFactory
This interface must be implemented by a service factory object, which should be used in the framework. The service factory takes care about all registered services.
| Method Summary | |
|---|---|
String[] |
getAllServiceIDs()
Gets a list with all service IDs. |
List |
getAllServices()
Gets a list with all service objects. |
IService |
getService(String id)
Gets a service for a certain ID. |
boolean |
isServiceAvailable(String id)
Checks if the service with the specified ID is available. |
boolean |
isServiceEnabled(String id)
Checks if a service is started. |
void |
restartService(String id)
Restarts the requested service explicitly |
void |
shutdown()
Shuts down the service factory and all its started services. |
void |
startService(String id)
Starts the requested service explicitly |
void |
startup()
Starts up the service factory and all its registered services. |
void |
stopService(String id)
Stops the requested service explicitly |
| Method Detail |
|---|
void shutdown()
void startup()
IService getService(String id)
id - the service ID
List getAllServices()
String[] getAllServiceIDs()
boolean isServiceAvailable(String id)
id - service ID
boolean isServiceEnabled(String id)
id - service ID
void startService(String id)
id - service idvoid restartService(String id)
id - service idvoid stopService(String id)
id - service id
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||