org.jboss.deployment
Class SubDeployerInterceptor
java.lang.Object
org.jboss.mx.interceptor.AbstractInterceptor
org.jboss.deployment.SubDeployerInterceptor
- All Implemented Interfaces:
- org.jboss.mx.interceptor.Interceptor
public abstract class SubDeployerInterceptor
- extends org.jboss.mx.interceptor.AbstractInterceptor
Base class for SubDeployer interceptors.
Override one or more of the init(), create(), start(), stop(), destroy()
methods to add behaviour. Don't forget to call invokeNext() inside
your implementation, if you want the call to be continued.
- Version:
- $Revision: 57205 $
- Author:
- Dimitris Andreadis
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor |
isShared, log, name |
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor |
destroy, getName, init, isShared, setLogger, setName, start, stop, toString |
SubDeployerInterceptor
public SubDeployerInterceptor()
- Default CTOR
SubDeployerInterceptor
public SubDeployerInterceptor(String name)
- CTOR
- Parameters:
name
- - the name to use for this interceptor
invoke
public Object invoke(org.jboss.mx.server.Invocation invocation)
throws Throwable
- This invoke method checks for invocations of interest, .i.e.
init(), create(), start(), stop(), destroy() operation calls
with a single DeploymentInfo argument and wraps the invocation
with calls to corresponding init(), create(), etc. methods.
- Specified by:
invoke
in interface org.jboss.mx.interceptor.Interceptor
- Overrides:
invoke
in class org.jboss.mx.interceptor.AbstractInterceptor
- Throws:
Throwable
invokeNext
protected Object invokeNext(org.jboss.mx.server.Invocation invocation)
throws Throwable
- Use this to forward the call
- Throws:
Throwable
init
protected Object init(org.jboss.mx.server.Invocation invocation,
DeploymentInfo di)
throws Throwable
- Throws:
Throwable
create
protected Object create(org.jboss.mx.server.Invocation invocation,
DeploymentInfo di)
throws Throwable
- Throws:
Throwable
start
protected Object start(org.jboss.mx.server.Invocation invocation,
DeploymentInfo di)
throws Throwable
- Throws:
Throwable
stop
protected Object stop(org.jboss.mx.server.Invocation invocation,
DeploymentInfo di)
throws Throwable
- Throws:
Throwable
destroy
protected Object destroy(org.jboss.mx.server.Invocation invocation,
DeploymentInfo di)
throws Throwable
- Throws:
Throwable
Copyright © 2002 JBoss Group, LLC. All Rights Reserved.