org.apache.axis2.jaxws.handler.lifecycle.impl
Class HandlerLifecycleManagerImpl

java.lang.Object
  extended by org.apache.axis2.jaxws.lifecycle.BaseLifecycleManager
      extended by 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
HandlerLifecycleManagerImpl()
           
 
Method Summary
 Handler createHandlerInstance(MessageContext mc, java.lang.Class handlerClass)
           
 void destroyHandlerInstance(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
 

Constructor Detail

HandlerLifecycleManagerImpl

public HandlerLifecycleManagerImpl()
Method Detail

createHandlerInstance

public Handler createHandlerInstance(MessageContext mc,
                                     java.lang.Class handlerClass)
                              throws LifecycleException,
                                     ResourceInjectionException
Specified by:
createHandlerInstance in interface HandlerLifecycleManager
Throws:
LifecycleException
ResourceInjectionException

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:
destroyHandlerInstance in interface HandlerLifecycleManager
Parameters:
handler -
Throws:
LifecycleException
ResourceInjectionException


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