|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Service
Interface for a service lifecycle.
The lifecycle for a service starts with the init
method when the service starts.
myService.init(config);
...
myService.hello();
...
myService.hello();
...
myService.destroy();
| Method Summary | |
|---|---|
void |
destroy()
Cleanup the service instance. |
void |
init(ServletConfig config)
Initialize the service instance. |
| Method Detail |
|---|
void init(ServletConfig config)
throws ServletException
config - the configuration for the service.
ServletExceptionvoid destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||