org.jboss.mx.interceptor
Class DynamicInterceptor
java.lang.Object
org.jboss.mx.interceptor.AbstractInterceptor
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: 85671 $
- Author:
- Dimitris Andreadis.
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
DynamicInterceptor
public DynamicInterceptor(MBeanInvoker invoker)
- CTOR
- Parameters:
invoker
- the invoker
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
- This exception wraps any exceptions thrown
by either the target method of the resource object, or invocation
interceptors in this interceptor chain. The target exception is
unwrapped at the MBeanInvoker
instance.- See Also:
Invocation
,
MBeanInvoker
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.