|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceEnvironment
Interface that defines a generice service environment.
ServiceEnvironment implementations will provide infrastructure resources for services. For example: A database related service will require access to resources that will enable it to write and read data to and from a database.
ServiceEnvironment implementations will only be created when first accessed and will not be recreated unless when explicitly destroyed.
Method Summary | |
---|---|
void |
create(java.lang.String name,
java.lang.String config)
Method to initialise this service environment. |
void |
destroy()
Method to destroy this service environment. |
java.lang.String |
getName()
Return the name of this environment. |
Method Detail |
---|
void create(java.lang.String name, java.lang.String config) throws ServiceException
The environment will only be created when first accessed. This ensures that costly operations are not duplicated everytime a service is requested.
name
- The name of the environment.config
- File path to the configuration of this environment.
ServiceException
- if the environment cannot be created.java.lang.String getName()
void destroy() throws ServiceException
ServiceException
- if this environment cannot be destroyed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |