mx4j.tools.adaptor.interceptor

Class InvokerAdaptorInterceptor

Implemented Interfaces:
AdaptorInterceptorMBean, Interceptor, Invocable

public final class InvokerAdaptorInterceptor
extends AdaptorInterceptor

Version:
$Revision: 1.3 $

Method Summary

protected InvocationResult
doInvoke(Invocation invocation)
The real invocation on the interceptor chain.
String
getType()
Returns the type of this interceptor
InvocationResult
invoke(Invocation invocation)
Invocation method
boolean
isEnabled()
This interceptor is always enabled
void
setEnabled(boolean value)
Cannot change the status of this attribute, this interceptor is always enabled
void
setMBeanServer(javax.management.MBeanServer server)

Methods inherited from class mx4j.tools.adaptor.interceptor.AdaptorInterceptor

doInvoke, getLogger, getMBeanServer, getNext, getObjectName, getType, invoke, isEnabled, postInvoke, preInvoke, setEnabled, setMBeanServer, setNext, setObjectName, toString

Method Details

doInvoke

protected InvocationResult doInvoke(Invocation invocation)
            throws Exception
The real invocation on the interceptor chain.
By default calls the next interceptor in the chain.
Overrides:
doInvoke in interface AdaptorInterceptor

See Also:
AdaptorInterceptor.setNext(Interceptor), AdaptorInterceptor.preInvoke(Invocation), AdaptorInterceptor.postInvoke(Invocation)


getType

public String getType()
Returns the type of this interceptor
Specified by:
getType in interface Interceptor
getType in interface AdaptorInterceptorMBean
Overrides:
getType in interface AdaptorInterceptor


invoke

public InvocationResult invoke(Invocation invocation)
            throws Exception
Invocation method
Specified by:
invoke in interface Invocable
Overrides:
invoke in interface AdaptorInterceptor


isEnabled

public boolean isEnabled()
This interceptor is always enabled
Specified by:
isEnabled in interface AdaptorInterceptorMBean
Overrides:
isEnabled in interface AdaptorInterceptor


setEnabled

public void setEnabled(boolean value)
Cannot change the status of this attribute, this interceptor is always enabled
Specified by:
setEnabled in interface AdaptorInterceptorMBean
Overrides:
setEnabled in interface AdaptorInterceptor


setMBeanServer

public void setMBeanServer(javax.management.MBeanServer server)
Overrides:
setMBeanServer in interface AdaptorInterceptor


Copyright © 2001-2003 MX4J Team. All Rights Reserved.