|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.xml.rpc.server Interface ServiceLifecycle
public interface ServiceLifecycle
The javax.xml.rpc.server.ServiceLifecycle
defines
a lifecycle interface for a JAX-RPC service endpoint. If the
service endpoint class implements the ServiceLifeycle
interface, the servlet container based JAX-RPC runtime system
is required to manage the lifecycle of the corresponding service
endpoint objects.
- 版本:
- 1.0
- 作者:
- Rahul Sharma
方法摘要 | |
---|---|
void |
destroy()
JAX-RPC runtime system ends the lifecycle of a service endpoint instance by invoking the destroy method. |
void |
init(Object context)
Used for initialization of a service endpoint. |
方法详细信息 |
---|
init
void init(Object context) throws ServiceException
- Used for initialization of a service endpoint. After a service
endpoint instance (an instance of a service endpoint class) is
instantiated, the JAX-RPC runtime system invokes the
init
method. The service endpoint class uses theinit
method to initialize its configuration and setup access to any external resources. The context parameter in theinit
method enables the endpoint instance to access the endpoint context provided by the underlying JAX-RPC runtime system.The init method implementation should typecast the context parameter to an appropriate Java type. For service endpoints deployed on a servlet container based JAX-RPC runtime system, the
context
parameter is of the Java typejavax.xml.rpc.server.ServletEndpointContext
. TheServletEndpointContext
provides an endpoint context maintained by the underlying servlet container based JAX-RPC runtime system - 参数:
context
- Endpoint context for a JAX-RPC service endpoint- 抛出异常:
ServiceException
- If any error in initialization of the service endpoint; or if any illegal context has been provided in the init method
destroy
void destroy()
- JAX-RPC runtime system ends the lifecycle of a service endpoint
instance by invoking the destroy method. The service endpoint
releases its resourcesin the implementation of the destroy
method.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.