Class HandlerLifecycleManagerImpl
- java.lang.Object
-
- org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
-
- org.apache.axis2.jaxws.handler.lifecycle.impl.HandlerLifecycleManagerImpl
-
- All Implemented Interfaces:
HandlerLifecycleManager
public class HandlerLifecycleManagerImpl extends BaseLifecycleManager implements HandlerLifecycleManager
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
instance
-
-
Constructor Summary
Constructors Constructor Description HandlerLifecycleManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HandlercreateHandlerInstance(MessageContext mc, Class handlerClass)voiddestroyHandlerInstance(MessageContext mc, Handler handler)destroyHandlerInstance calls the handler's annotated PreDestroy method, if it exists.-
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.handler.lifecycle.factory.HandlerLifecycleManager
invokePostConstruct, invokePreDestroy
-
-
-
-
Method Detail
-
createHandlerInstance
public Handler createHandlerInstance(MessageContext mc, Class handlerClass) throws LifecycleException, ResourceInjectionException
- Specified by:
createHandlerInstancein interfaceHandlerLifecycleManager- Throws:
LifecycleExceptionResourceInjectionException
-
destroyHandlerInstance
public void destroyHandlerInstance(MessageContext mc, Handler handler) throws LifecycleException, ResourceInjectionException
destroyHandlerInstance calls the handler's annotated PreDestroy method, if it exists. A handler instance that has been passed through this method SHOULD NOT be used again- Specified by:
destroyHandlerInstancein interfaceHandlerLifecycleManager- Parameters:
handler-- Throws:
LifecycleExceptionResourceInjectionException
-
-