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 SummaryFields Modifier and Type Field Description static StringWEBSERVICE_MESSAGE_CONTEXT- 
Fields inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManagerinstance
 
- 
 - 
Constructor SummaryConstructors Constructor Description EndpointLifecycleManagerImpl()EndpointLifecycleManagerImpl(Object endpointInstance)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description ObjectcreateServiceInstance(MessageContext mc, Class serviceImplClass)EndpointLifecycleManager will create a service instance.protected MessageContextcreateSOAPMessageContext(MessageContext mc)protected WebServiceContextcreateWebServiceContext(MessageContext mc)This method will be responsible for creating an instance of a WebServiceContext and initializing the instance with a MessageContext.protected ResourceInjectionServiceRuntimeDescriptiongetInjectionDesc(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, 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 voidperformWebServiceContextUpdate(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 ObjectretrieveServiceInstance(MessageContext mc)This method locates an existing service implementation instance if one has been previously stored away.protected voidsaveWebServiceContext(MessageContext mc, WebServiceContext wsContext)This method will provide the function necessary to save the WebServiceContext associated with the endpoint.protected voidupdateWebServiceContext(WebServiceContext wsContext, MessageContext soapMessageContext)- 
Methods inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManagergetPostConstructMethod, getPreDestroyMethod, invokeMethod, invokePostConstruct, invokePostConstruct, invokePreDestroy, invokePreDestroy, isPostConstruct, isPreDestroy
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.apache.axis2.jaxws.server.endpoint.lifecycle.EndpointLifecycleManagerinvokePostConstruct, invokePreDestroy
 
- 
 
- 
- 
- 
Field Detail- 
WEBSERVICE_MESSAGE_CONTEXTpublic static final String WEBSERVICE_MESSAGE_CONTEXT - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
EndpointLifecycleManagerImplpublic EndpointLifecycleManagerImpl(Object endpointInstance) 
 - 
EndpointLifecycleManagerImplpublic EndpointLifecycleManagerImpl() 
 
- 
 - 
Method Detail- 
createServiceInstancepublic 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 interface- EndpointLifecycleManager
- Returns:
- Throws:
- LifecycleException
- ResourceInjectionException
 
 - 
retrieveServiceInstanceprotected Object retrieveServiceInstance(MessageContext mc) This method locates an existing service implementation instance if one has been previously stored away.
 - 
performWebServiceContextInjectionprotected 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
 
 - 
performWebServiceContextUpdateprotected 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
 
 - 
saveWebServiceContextprotected void saveWebServiceContext(MessageContext mc, WebServiceContext wsContext) This method will provide the function necessary to save the WebServiceContext associated with the endpoint.
 - 
createWebServiceContextprotected WebServiceContext createWebServiceContext(MessageContext mc) This method will be responsible for creating an instance of a WebServiceContext and initializing the instance with a MessageContext.
 - 
getInjectionDescprotected ResourceInjectionServiceRuntimeDescription getInjectionDesc(ServiceDescription serviceDesc, Class serviceImplClass) This method will retrieve a ResourceInjectionServiceRuntimeDescription if one is associated with the current ServiceDescription.
 - 
hasResourceAnnotationprotected boolean hasResourceAnnotation(ResourceInjectionServiceRuntimeDescription injectionDesc) This method indicates whether or not we need to perform WebServiceContext injection on a field within our endpoint instance.
 - 
createSOAPMessageContextprotected MessageContext createSOAPMessageContext(MessageContext mc) 
 - 
injectWebServiceContextprotected void injectWebServiceContext(MessageContext mc, WebServiceContext wsContext, Object serviceInstance) throws ResourceInjectionException - Throws:
- ResourceInjectionException
 
 - 
updateWebServiceContextprotected void updateWebServiceContext(WebServiceContext wsContext, MessageContext soapMessageContext) throws ResourceInjectionException - Throws:
- ResourceInjectionException
 
 
- 
 
-