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.
Method Summary |
void |
destroy()
JAX-RPC runtime system ends the lifecycle of a service endpoint
object by invoking the destroy method. |
void |
init(java.lang.Object context)
After a service endpoint object (an instance of a service
endpoint class) is instantiated, the JAX-RPC runtime system
invokes the init method.The service endpoint class uses the
init method to initialize its configuration and setup access
to any external resources. |
init
public void init(java.lang.Object context)
throws ServiceException
- After a service endpoint object (an instance of a service
endpoint class) is instantiated, the JAX-RPC runtime system
invokes the init method.The service endpoint class uses the
init method to initialize its configuration and setup access
to any external resources.
- Parameters:
context
- Initialization context for a JAX-RPC service
endpoint; Carries javax.servlet.ServletContext
for the servlet based JAX-RPC endpoints- Throws:
ServiceException
- If any error in initialization of the
service endpoint; or if any illegal context has
been provided in the init method
destroy
public void destroy()
- JAX-RPC runtime system ends the lifecycle of a service endpoint
object by invoking the destroy method. The service endpoint
releases its resourcesin the implementation of the destroy
method.
Copyright © 2001 Apache XML Project. All Rights Reserved.