|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | 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()
|
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 |
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 void setNext(Interceptor interceptor)
InterceptorsetNext in interface Interceptorprotected 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.postInvoke(mx4j.adaptor.interceptor.Invocation)
public InvocationResult invoke(Invocation invocation)
throws java.lang.Exception
Invocableinvoke in interface Invocable
protected InvocationResult doInvoke(Invocation invocation)
throws 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.preInvoke(mx4j.adaptor.interceptor.Invocation)public java.lang.String getType()
InterceptorgetType in interface Interceptorpublic void setEnabled(boolean value)
AdaptorInterceptorMBeansetEnabled in interface AdaptorInterceptorMBeanpublic boolean isEnabled()
AdaptorInterceptorMBeanisEnabled in interface AdaptorInterceptorMBeanprotected Logger getLogger()
public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||