org.jboss.deployment
Class SubDeployerInterceptor

java.lang.Object
  extended by org.jboss.mx.interceptor.AbstractInterceptor
      extended by 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

Field Summary
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor
isShared, log, name
 
Constructor Summary
SubDeployerInterceptor()
          Default CTOR
SubDeployerInterceptor(String name)
          CTOR
 
Method Summary
protected  Object create(org.jboss.mx.server.Invocation invocation, DeploymentInfo di)
           
protected  Object destroy(org.jboss.mx.server.Invocation invocation, DeploymentInfo di)
           
protected  Object init(org.jboss.mx.server.Invocation invocation, DeploymentInfo di)
           
 Object invoke(org.jboss.mx.server.Invocation invocation)
          This invoke method checks for invocations of interest, .i.e.
protected  Object invokeNext(org.jboss.mx.server.Invocation invocation)
          Use this to forward the call
protected  Object start(org.jboss.mx.server.Invocation invocation, DeploymentInfo di)
           
protected  Object stop(org.jboss.mx.server.Invocation invocation, DeploymentInfo di)
           
 
Methods inherited from class org.jboss.mx.interceptor.AbstractInterceptor
destroy, getName, init, isShared, setLogger, setName, start, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SubDeployerInterceptor

public SubDeployerInterceptor()
Default CTOR


SubDeployerInterceptor

public SubDeployerInterceptor(String name)
CTOR

Parameters:
name - - the name to use for this interceptor
Method Detail

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.