Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » deployment » [javadoc | source]
org.jboss.deployment
abstract public class: SubDeployerInterceptor [javadoc | source]
java.lang.Object
   org.jboss.mx.interceptor.AbstractInterceptor
      org.jboss.deployment.SubDeployerInterceptor

All Implemented Interfaces:
    Interceptor

Direct Known Subclasses:
    XMBeanInterceptor

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.
Fields inherited from org.jboss.mx.interceptor.AbstractInterceptor:
name,  isShared,  log
Constructor:
 public SubDeployerInterceptor() 
 public SubDeployerInterceptor(String name) 
    CTOR
    Parameters:
    name - - the name to use for this interceptor
Method from org.jboss.deployment.SubDeployerInterceptor Summary:
create,   destroy,   init,   invoke,   invokeNext,   start,   stop
Methods from org.jboss.mx.interceptor.AbstractInterceptor:
destroy,   getName,   init,   invoke,   isShared,   setLogger,   setName,   start,   stop,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.deployment.SubDeployerInterceptor Detail:
 protected Object create(Invocation invocation,
    DeploymentInfo di) throws Throwable 
 protected Object destroy(Invocation invocation,
    DeploymentInfo di) throws Throwable 
 protected Object init(Invocation invocation,
    DeploymentInfo di) throws Throwable 
 public Object invoke(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.
 protected Object invokeNext(Invocation invocation) throws Throwable 
    Use this to forward the call
 protected Object start(Invocation invocation,
    DeploymentInfo di) throws Throwable 
 protected Object stop(Invocation invocation,
    DeploymentInfo di) throws Throwable