|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Service
A simple interface that represents coarse grained services, or components, within the software.
Method Summary | |
---|---|
void |
destroy()
Destroys a service, freeing any resources it may currently be using. |
String |
getId()
Gets the ID of this service. |
void |
initialize()
Initializes this service. |
boolean |
isDestroyed()
Gets whether the service has been destroyed. |
boolean |
isInitialized()
Gets whether the service is initialized and ready for use. |
Method Detail |
---|
String getId()
boolean isInitialized()
void initialize() throws ServiceException
ServiceException
- thrown if there is a problem initializing the serviceboolean isDestroyed()
void destroy() throws ServiceException
ServiceException
- thrown if there is a problem destroying the service
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |