public class EndpointLifecycleManagerImpl extends BaseLifecycleManager implements EndpointLifecycleManager
Modifier and Type | Field and Description |
---|---|
static String |
WEBSERVICE_MESSAGE_CONTEXT |
instance
Constructor and Description |
---|
EndpointLifecycleManagerImpl() |
EndpointLifecycleManagerImpl(Object endpointInstance) |
Modifier and Type | Method and 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) |
getPostConstructMethod, getPreDestroyMethod, invokeMethod, invokePostConstruct, invokePostConstruct, invokePreDestroy, invokePreDestroy, isPostConstruct, isPreDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invokePostConstruct, invokePreDestroy
public static final String WEBSERVICE_MESSAGE_CONTEXT
public EndpointLifecycleManagerImpl(Object endpointInstance)
public EndpointLifecycleManagerImpl()
public Object createServiceInstance(MessageContext mc, Class serviceImplClass) throws LifecycleException, ResourceInjectionException
EndpointLifecycleManager
createServiceInstance
in interface EndpointLifecycleManager
LifecycleException
ResourceInjectionException
protected Object retrieveServiceInstance(MessageContext mc)
protected void performWebServiceContextInjection(MessageContext mc, Object serviceImpl) throws ResourceInjectionException
ResourceInjectionException
protected void performWebServiceContextUpdate(MessageContext mc) throws ResourceInjectionException
ResourceInjectionException
protected void saveWebServiceContext(MessageContext mc, WebServiceContext wsContext)
protected WebServiceContext createWebServiceContext(MessageContext mc)
protected ResourceInjectionServiceRuntimeDescription getInjectionDesc(ServiceDescription serviceDesc, Class serviceImplClass)
protected boolean hasResourceAnnotation(ResourceInjectionServiceRuntimeDescription injectionDesc)
protected MessageContext createSOAPMessageContext(MessageContext mc)
protected void injectWebServiceContext(MessageContext mc, WebServiceContext wsContext, Object serviceInstance) throws ResourceInjectionException
ResourceInjectionException
protected void updateWebServiceContext(WebServiceContext wsContext, MessageContext soapMessageContext) throws ResourceInjectionException
ResourceInjectionException
Copyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.