org.jboss.mx.interceptor
Class DynamicInterceptor

java.lang.Object
  extended by org.jboss.mx.interceptor.AbstractInterceptor
      extended by org.jboss.mx.interceptor.DynamicInterceptor
All Implemented Interfaces:
Interceptor

public class DynamicInterceptor
extends AbstractInterceptor

Interceptor that provides access to the org.jboss.mx.server.Interceptable hooks for dynamically adding and removing interceptors to an MBean.

Version:
$Revision: 57200 $
Author:
Dimitris Andreadis.

Field Summary
static String ADD_INTERCEPTOR
          methods implemented from org.jboss.mx.server.Interceptable
static String REMOVE_INTERCEPTOR
           
 
Fields inherited from class org.jboss.mx.interceptor.AbstractInterceptor
isShared, log, name
 
Constructor Summary
DynamicInterceptor(MBeanInvoker invoker)
          CTOR
 
Method Summary
 Object invoke(Invocation invocation)
          Do the trick
 
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
 

Field Detail

ADD_INTERCEPTOR

public static final String ADD_INTERCEPTOR
methods implemented from org.jboss.mx.server.Interceptable

See Also:
Constant Field Values

REMOVE_INTERCEPTOR

public static final String REMOVE_INTERCEPTOR
See Also:
Constant Field Values
Constructor Detail

DynamicInterceptor

public DynamicInterceptor(MBeanInvoker invoker)
CTOR

Method Detail

invoke

public Object invoke(Invocation invocation)
              throws Throwable
Do the trick

Specified by:
invoke in interface Interceptor
Overrides:
invoke in class AbstractInterceptor
Parameters:
invocation - the invocation object send towards the target resource by the invoker
Returns:
return value from the target resource
Throws:
Throwable
See Also:
Invocation, MBeanInvoker


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.