mx4j.tools.adaptor.interceptor
Class AdaptorInterceptor
java.lang.Object
mx4j.tools.adaptor.interceptor.AdaptorInterceptor
- AdaptorInterceptorMBean, Interceptor, Invocable
public class AdaptorInterceptor
extends java.lang.Object
The base adaptor interceptor implementation
Version:
getLogger
protected Logger getLogger()
getMBeanServer
public javax.management.MBeanServer getMBeanServer()
getObjectName
public javax.management.ObjectName getObjectName()
postInvoke
protected void postInvoke(Invocation invocation)
throws Exception
Called after the real invocation in the interceptor chain.
By default does nothing; exception thrown by this method will be just logged.
This method is always called, even in case of exception thrown by
preInvoke(Invocation)
or by
doInvoke(Invocation)
Subclasses normally override this method to perform some operation after the real invocation
on the interceptor chain.
preInvoke(Invocation)
preInvoke
protected void preInvoke(Invocation invocation)
throws Exception
Called before the real invocation on the interceptor chain.
By default does nothing; exception thrown by this method will result in
doInvoke(Invocation)
not being called.
Subclasses normally override this method to perform some operation before the real invocation
on the interceptor chain.
postInvoke(Invocation)
setMBeanServer
public void setMBeanServer(javax.management.MBeanServer server)
setObjectName
public void setObjectName(javax.management.ObjectName name)
Explicitely sets the object name of this interceptor in case it is registered with an MBeanServer.
If not set, the object name will be deducted from the adaptor's object name and from
this interceptor's name.
getObjectName()
, getType()
toString
public String toString()
Copyright © 2001-2003 MX4J Team. All Rights Reserved.