| org.jboss.system.InterceptorServiceMBeanSupport org.jboss.deployment.SubDeployerInterceptorSupport
SubDeployerInterceptorSupport | abstract public class SubDeployerInterceptorSupport extends InterceptorServiceMBeanSupport implements SubDeployerInterceptorMBean(Code) | | Base class that can be used for writing services
that dynamically hook to other interceptable deployers
in order to add functionality in the deployment cycle.
We override attach() to install a different interceptor
from that of the base class that understands SubDeployer
calls. Note that the baseclass invoke(Invocation) won't be
called, so no need to override it.
Simply call attach()/detach() from createService()/destroyService()
or startService()/stopService() pair methods to attach/detach the
interceptor to the configured Interceptable SubDeployer(s).
Then override any of the init/create/start/stop/destroy methods to
apply the extra interception functionality. Inside those methods
don't forget to forward the call using invokeNext().
author: Dimitris Andreadis version: $Revision: 57205 $ |
SubDeployerInterceptorSupport | public SubDeployerInterceptorSupport()(Code) | | Constructs an SubDeployerInterceptorSupport.
|
SubDeployerInterceptorSupport | public SubDeployerInterceptorSupport(Class type)(Code) | | Constructs an SubDeployerInterceptorSupport.
Pass-through to InterceptorServiceMBeanSupport.
Parameters: type - The class type to determine Logger name from. |
SubDeployerInterceptorSupport | public SubDeployerInterceptorSupport(String category)(Code) | | Constructs an SubDeployerInterceptorSupport.
Pass-through to InterceptorServiceMBeanSupport.
Parameters: category - The logger category name. |
SubDeployerInterceptorSupport | public SubDeployerInterceptorSupport(Logger log)(Code) | | Constructs an SubDeployerInterceptorSupport.
Pass-through to InterceptorServiceMBeanSupport.
Parameters: log - The logger to use. |
attach | protected void attach() throws Exception(Code) | | We override attach() from InterceptorServiceMBeanSupport
to attach a different interceptor that knows how to switch
init/create/start/stop/destroy SubDeployer calls.
throws: Exception - thrown on any interceptor registration error |
|
|