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 Details

  • Constructor Details

    • EndpointLifecycleManagerImpl

      public EndpointLifecycleManagerImpl(Object endpointInstance)
    • EndpointLifecycleManagerImpl

      public EndpointLifecycleManagerImpl()
  • Method Details

    • 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 interface EndpointLifecycleManager
      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, jakarta.xml.ws.WebServiceContext wsContext)
      This method will provide the function necessary to save the WebServiceContext associated with the endpoint.
    • createWebServiceContext

      protected jakarta.xml.ws.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(org.apache.axis2.jaxws.description.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 jakarta.xml.ws.handler.MessageContext createSOAPMessageContext(MessageContext mc)
    • 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