|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Service
This interface defines a Service. Objects which implement this interface must have a public constructor with a string parameter which is the name of the service.
| Method Summary | |
|---|---|
java.lang.String |
getName()
|
void |
init(javax.naming.Context ctx)
Initialize the service |
boolean |
isStarted()
|
void |
setName(java.lang.String name)
Set the service's name |
void |
start()
Start the service |
void |
stop()
Stop the service |
| Method Detail |
|---|
void init(javax.naming.Context ctx)
throws ServiceException
ctx - configuration of the service
ServiceException - when init fails.
void start()
throws ServiceException
ServiceException - when start fails.
void stop()
throws ServiceException
ServiceException - when stop fails.boolean isStarted()
void setName(java.lang.String name)
name - the service's namejava.lang.String getName()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||