-
public interface ServiceLifecycle
Thejavax.xml.rpc.server.ServiceLifecycle
defines a lifecycle interface for a JAX-RPC service endpoint. If the service endpoint class implements theServiceLifeycle
interface, the servlet container based JAX-RPC runtime system is required to manage the lifecycle of the corresponding service endpoint objects.- Version:
- 1.0
- Author:
- Rahul Sharma
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description 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.
-
-
-
Method Detail
-
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 theinit
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- Parameters:
context
- Endpoint context for a JAX-RPC service endpoint- Throws:
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.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/08/2025 17:19:59 Cette version de la page est en cache (à la date du 21/08/2025 17:19:59) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 18/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/xml/rpc/server/ServiceLifecycle.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.