|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--mx4j.adaptor.interceptor.AdaptorInterceptor
The base adaptor interceptor implementation
Constructor Summary | |
AdaptorInterceptor()
|
Method Summary | |
protected InvocationResult |
doInvoke(Invocation invocation)
The real invocation on the interceptor chain. |
protected Logger |
getLogger()
|
MBeanServer |
getMBeanServer()
|
protected Interceptor |
getNext()
|
ObjectName |
getObjectName()
Returns the object name explicitely set by setObjectName(javax.management.ObjectName) |
java.lang.String |
getType()
Returns the type of this interceptor |
InvocationResult |
invoke(Invocation invocation)
Invocation method |
boolean |
isEnabled()
Returns whether this interceptor is enabled |
protected void |
postInvoke(Invocation invocation)
Called after the real invocation in the interceptor chain. |
protected void |
preInvoke(Invocation invocation)
Called before the real invocation on the interceptor chain. |
void |
setEnabled(boolean value)
Enables or disables this interceptor |
void |
setMBeanServer(MBeanServer server)
|
void |
setNext(Interceptor interceptor)
Sets the next interceptor in the chain |
void |
setObjectName(ObjectName name)
Explicitely sets the object name of this interceptor in case it is registered with an MBeanServer. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AdaptorInterceptor()
Method Detail |
public MBeanServer getMBeanServer()
public void setMBeanServer(MBeanServer server)
public void setNext(Interceptor interceptor)
Interceptor
setNext
in interface Interceptor
protected Interceptor getNext()
public void setObjectName(ObjectName name)
getObjectName()
,
getType()
public ObjectName getObjectName()
setObjectName(javax.management.ObjectName)
protected void preInvoke(Invocation invocation) throws java.lang.Exception
doInvoke(mx4j.adaptor.interceptor.Invocation)
not being called.
Subclasses normally override this method to perform some operation before the real invocation
on the interceptor chain.
java.lang.Exception
postInvoke(mx4j.adaptor.interceptor.Invocation)
public InvocationResult invoke(Invocation invocation) throws java.lang.Exception
Invocable
invoke
in interface Invocable
java.lang.Exception
protected InvocationResult doInvoke(Invocation invocation) throws java.lang.Exception
java.lang.Exception
setNext(mx4j.adaptor.interceptor.Interceptor)
,
preInvoke(mx4j.adaptor.interceptor.Invocation)
,
postInvoke(mx4j.adaptor.interceptor.Invocation)
protected void postInvoke(Invocation invocation) throws java.lang.Exception
preInvoke(mx4j.adaptor.interceptor.Invocation)
or by doInvoke(mx4j.adaptor.interceptor.Invocation)
Subclasses normally override this method to perform some operation after the real invocation
on the interceptor chain.
java.lang.Exception
preInvoke(mx4j.adaptor.interceptor.Invocation)
public java.lang.String getType()
Interceptor
getType
in interface Interceptor
public void setEnabled(boolean value)
AdaptorInterceptorMBean
setEnabled
in interface AdaptorInterceptorMBean
public boolean isEnabled()
AdaptorInterceptorMBean
isEnabled
in interface AdaptorInterceptorMBean
protected Logger getLogger()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |