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
Fields Modifier and Type Field Description static String
WEBSERVICE_MESSAGE_CONTEXT
-
Fields inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
instance
-
-
Constructor Summary
Constructors Constructor Description EndpointLifecycleManagerImpl()
EndpointLifecycleManagerImpl(Object endpointInstance)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
createServiceInstance(MessageContext mc, Class serviceImplClass)
EndpointLifecycleManager will create a service instance.protected MessageContext
createSOAPMessageContext(MessageContext mc)
protected WebServiceContext
createWebServiceContext(MessageContext mc)
This method will be responsible for creating an instance of a WebServiceContext and initializing the instance with a MessageContext.protected ResourceInjectionServiceRuntimeDescription
getInjectionDesc(ServiceDescription serviceDesc, Class serviceImplClass)
This method will retrieve a ResourceInjectionServiceRuntimeDescription if one is associated with the current ServiceDescription.protected boolean
hasResourceAnnotation(ResourceInjectionServiceRuntimeDescription injectionDesc)
This method indicates whether or not we need to perform WebServiceContext injection on a field within our endpoint instance.protected void
injectWebServiceContext(MessageContext mc, WebServiceContext wsContext, Object serviceInstance)
protected void
performWebServiceContextInjection(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 void
performWebServiceContextUpdate(MessageContext mc)
This method will provide the necessary function in order to update an existing WebServiceContext instance with a MessageContext for the current request.protected Object
retrieveServiceInstance(MessageContext mc)
This method locates an existing service implementation instance if one has been previously stored away.protected void
saveWebServiceContext(MessageContext mc, WebServiceContext wsContext)
This method will provide the function necessary to save the WebServiceContext associated with the endpoint.protected void
updateWebServiceContext(WebServiceContext wsContext, MessageContext soapMessageContext)
-
Methods inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
getPostConstructMethod, getPreDestroyMethod, invokeMethod, invokePostConstruct, invokePostConstruct, invokePreDestroy, invokePreDestroy, isPostConstruct, isPreDestroy
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.axis2.jaxws.server.endpoint.lifecycle.EndpointLifecycleManager
invokePostConstruct, invokePreDestroy
-
-
-
-
Field Detail
-
WEBSERVICE_MESSAGE_CONTEXT
public static final String WEBSERVICE_MESSAGE_CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EndpointLifecycleManagerImpl
public EndpointLifecycleManagerImpl(Object endpointInstance)
-
EndpointLifecycleManagerImpl
public EndpointLifecycleManagerImpl()
-
-
Method Detail
-
createServiceInstance
public Object createServiceInstance(MessageContext mc, Class serviceImplClass) throws LifecycleException, ResourceInjectionException
Description copied from interface:EndpointLifecycleManager
EndpointLifecycleManager will create a service instance. It will inject Resources and then call the lifecycle methods on the service instance.- Specified by:
createServiceInstance
in interfaceEndpointLifecycleManager
- Returns:
- Throws:
LifecycleException
ResourceInjectionException
-
retrieveServiceInstance
protected Object retrieveServiceInstance(MessageContext mc)
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
protected void performWebServiceContextUpdate(MessageContext mc) throws ResourceInjectionException
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
protected void saveWebServiceContext(MessageContext mc, WebServiceContext wsContext)
This method will provide the function necessary to save the WebServiceContext associated with the endpoint.
-
createWebServiceContext
protected WebServiceContext createWebServiceContext(MessageContext mc)
This method will be responsible for creating an instance of a WebServiceContext and initializing the instance with a MessageContext.
-
getInjectionDesc
protected ResourceInjectionServiceRuntimeDescription getInjectionDesc(ServiceDescription serviceDesc, Class serviceImplClass)
This method will retrieve a ResourceInjectionServiceRuntimeDescription if one is associated with the current ServiceDescription.
-
hasResourceAnnotation
protected boolean hasResourceAnnotation(ResourceInjectionServiceRuntimeDescription injectionDesc)
This method indicates whether or not we need to perform WebServiceContext injection on a field within our endpoint instance.
-
createSOAPMessageContext
protected MessageContext createSOAPMessageContext(MessageContext mc)
-
injectWebServiceContext
protected void injectWebServiceContext(MessageContext mc, WebServiceContext wsContext, Object serviceInstance) throws ResourceInjectionException
- Throws:
ResourceInjectionException
-
updateWebServiceContext
protected void updateWebServiceContext(WebServiceContext wsContext, MessageContext soapMessageContext) throws ResourceInjectionException
- Throws:
ResourceInjectionException
-
-