Class EndpointLifecycleManagerImpl
java.lang.Object
org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
org.apache.axis2.jaxws.server.endpoint.lifecycle.impl.EndpointLifecycleManagerImpl
- All Implemented Interfaces:
EndpointLifecycleManager
public class EndpointLifecycleManagerImpl
extends BaseLifecycleManager
implements EndpointLifecycleManager
-
Field Summary
FieldsFields inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
instance -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateServiceInstance(MessageContext mc, Class serviceImplClass) EndpointLifecycleManager will create a service instance.protected jakarta.xml.ws.handler.MessageContextprotected jakarta.xml.ws.WebServiceContextThis method will be responsible for creating an instance of a WebServiceContext and initializing the instance with a MessageContext.getInjectionDesc(org.apache.axis2.jaxws.description.ServiceDescription serviceDesc, Class serviceImplClass) This method will retrieve a ResourceInjectionServiceRuntimeDescription if one is associated with the current ServiceDescription.protected booleanhasResourceAnnotation(ResourceInjectionServiceRuntimeDescription injectionDesc) This method indicates whether or not we need to perform WebServiceContext injection on a field within our endpoint instance.protected voidinjectWebServiceContext(MessageContext mc, jakarta.xml.ws.WebServiceContext wsContext, Object serviceInstance) protected voidperformWebServiceContextInjection(MessageContext mc, Object serviceImpl) This method will provide the necessary function in order to inject a WebServiceContext instance on a member of the service implementation class.protected voidThis method will provide the necessary function in order to update an existing WebServiceContext instance with a MessageContext for the current request.protected ObjectThis method locates an existing service implementation instance if one has been previously stored away.protected voidsaveWebServiceContext(MessageContext mc, jakarta.xml.ws.WebServiceContext wsContext) This method will provide the function necessary to save the WebServiceContext associated with the endpoint.protected voidupdateWebServiceContext(jakarta.xml.ws.WebServiceContext wsContext, jakarta.xml.ws.handler.MessageContext soapMessageContext) Methods inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
getPostConstructMethod, getPreDestroyMethod, invokeMethod, invokePostConstruct, invokePostConstruct, invokePreDestroy, invokePreDestroy, isPostConstruct, isPreDestroyMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.axis2.jaxws.server.endpoint.lifecycle.EndpointLifecycleManager
invokePostConstruct, invokePreDestroy
-
Field Details
-
WEBSERVICE_MESSAGE_CONTEXT
- See Also:
-
-
Constructor Details
-
EndpointLifecycleManagerImpl
-
EndpointLifecycleManagerImpl
public EndpointLifecycleManagerImpl()
-
-
Method Details
-
createServiceInstance
public Object createServiceInstance(MessageContext mc, Class serviceImplClass) throws LifecycleException, ResourceInjectionException Description copied from interface:EndpointLifecycleManagerEndpointLifecycleManager will create a service instance. It will inject Resources and then call the lifecycle methods on the service instance.- Specified by:
createServiceInstancein interfaceEndpointLifecycleManager- Returns:
- Throws:
LifecycleExceptionResourceInjectionException
-
retrieveServiceInstance
This method locates an existing service implementation instance if one has been previously stored away. -
performWebServiceContextInjection
protected void performWebServiceContextInjection(MessageContext mc, Object serviceImpl) throws ResourceInjectionException This method will provide the necessary function in order to inject a WebServiceContext instance on a member of the service implementation class.- Throws:
ResourceInjectionException
-
performWebServiceContextUpdate
This method will provide the necessary function in order to update an existing WebServiceContext instance with a MessageContext for the current request.- Throws:
ResourceInjectionException
-
saveWebServiceContext
This method will provide the function necessary to save the WebServiceContext associated with the endpoint. -
createWebServiceContext
This method will be responsible for creating an instance of a WebServiceContext and initializing the instance with a MessageContext. -
getInjectionDesc
protected ResourceInjectionServiceRuntimeDescription getInjectionDesc(org.apache.axis2.jaxws.description.ServiceDescription serviceDesc, Class serviceImplClass) This method will retrieve a ResourceInjectionServiceRuntimeDescription if one is associated with the current ServiceDescription. -
hasResourceAnnotation
This method indicates whether or not we need to perform WebServiceContext injection on a field within our endpoint instance. -
createSOAPMessageContext
-
injectWebServiceContext
protected void injectWebServiceContext(MessageContext mc, jakarta.xml.ws.WebServiceContext wsContext, Object serviceInstance) throws ResourceInjectionException - Throws:
ResourceInjectionException
-
updateWebServiceContext
protected void updateWebServiceContext(jakarta.xml.ws.WebServiceContext wsContext, jakarta.xml.ws.handler.MessageContext soapMessageContext) throws ResourceInjectionException - Throws:
ResourceInjectionException
-