org.apache.axis2.jaxws.server.endpoint.lifecycle.impl
Class EndpointLifecycleManagerImpl

java.lang.Object
  extended by org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
      extended by org.apache.axis2.jaxws.server.endpoint.lifecycle.impl.EndpointLifecycleManagerImpl
All Implemented Interfaces:
EndpointLifecycleManager

public class EndpointLifecycleManagerImpl
extends BaseLifecycleManager
implements EndpointLifecycleManager


Field Summary
static java.lang.String WEBSERVICE_MESSAGE_CONTEXT
           
 
Fields inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
instance
 
Constructor Summary
EndpointLifecycleManagerImpl()
           
EndpointLifecycleManagerImpl(java.lang.Object endpointInstance)
           
 
Method Summary
 java.lang.Object createServiceInstance(MessageContext mc, java.lang.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, java.lang.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, java.lang.Object serviceInstance)
           
protected  void performWebServiceContextInjection(MessageContext mc, java.lang.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  java.lang.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 java.lang.String WEBSERVICE_MESSAGE_CONTEXT
See Also:
Constant Field Values
Constructor Detail

EndpointLifecycleManagerImpl

public EndpointLifecycleManagerImpl(java.lang.Object endpointInstance)

EndpointLifecycleManagerImpl

public EndpointLifecycleManagerImpl()
Method Detail

createServiceInstance

public java.lang.Object createServiceInstance(MessageContext mc,
                                              java.lang.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 java.lang.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,
                                                 java.lang.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,
                                                                      java.lang.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,
                                       java.lang.Object serviceInstance)
                                throws ResourceInjectionException
Throws:
ResourceInjectionException

updateWebServiceContext

protected void updateWebServiceContext(WebServiceContext wsContext,
                                       MessageContext soapMessageContext)
                                throws ResourceInjectionException
Throws:
ResourceInjectionException


Copyright © 2007 Apache Web Services Project. All Rights Reserved.