com.caucho.services.server
接口 Service

所有已知实现类:
GenericService

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();
 


方法摘要
 void destroy()
          Cleanup the service instance.
 void init(ServletConfig config)
          Initialize the service instance.
 

方法详细信息

init

void init(ServletConfig config)
          throws ServletException
Initialize the service instance.

参数:
config - the configuration for the service.
抛出:
ServletException

destroy

void destroy()
Cleanup the service instance.