| java.lang.Object org.jboss.mx.interceptor.AbstractInterceptor
All known Subclasses: org.jboss.mx.interceptor.SecurityInterceptor, org.jboss.mx.interceptor.LogInterceptor, org.jboss.mx.interceptor.ModelMBeanAttributeInterceptor, org.jboss.mx.interceptor.ModelMBeanOperationInterceptor, org.jboss.mx.interceptor.NullInterceptor, org.jboss.mx.interceptor.ModelMBeanInfoInterceptor, org.jboss.mx.interceptor.DynamicInterceptor, org.jboss.mx.interceptor.PersistenceInterceptor, org.jboss.mx.interceptor.StandardMBeanInfoInterceptor, org.jboss.mx.interceptor.ReflectedDispatcher, org.jboss.mx.interceptor.ObjectReferenceInterceptor, org.jboss.mx.interceptor.AbstractSharedInterceptor,
Field Summary | |
protected boolean | isShared Indicates whether this interceptor instance is shared or not. | protected Logger | log Logger reference for interceptor implementations. | protected String | name Name for this interceptor. |
isShared | protected boolean isShared(Code) | | Indicates whether this interceptor instance is shared or not.
|
log | protected Logger log(Code) | | Logger reference for interceptor implementations. This reference is
set by the invoker for non-shared interceptors after construction.
Shared interceptors will should create their own logger instance.
|
AbstractInterceptor | public AbstractInterceptor()(Code) | | Constructs a new intereceptor instance. This interceptor is not shared
in the MBean server.
|
AbstractInterceptor | public AbstractInterceptor(String name)(Code) | | Constructs a new interceptor instance with a given name. This interceptor
is not shared in the MBean server.
Parameters: name - name of this interceptor throws: IllegalArgumentException - if name contains null reference |
destroy | public void destroy()(Code) | | |
invoke | public Object invoke(Invocation invocation) throws Throwable(Code) | | The default invoke implementation queries the invocation object for the
next interceptor in the chain. If one exists, it is invoked. Otherwise
the invocation is dispatched to the target object.
Concrete implementations should override this method to implement
their specific application logic.
See Also: org.jboss.mx.server.Invocation See Also: org.jboss.mx.server.MBeanInvoker Parameters: invocation - the invocation object send towards the targetresource by the invoker return value from the target resource throws: InvocationException - This exception wraps any exceptions thrownby either the target method of the resource object, or invocationinterceptors in this interceptor chain. The target exception isunwrapped at the org.jboss.mx.server.MBeanInvoker instance. |
isShared | public boolean isShared()(Code) | | |
setLogger | public void setLogger(Logger log)(Code) | | |
setName | public void setName(String name)(Code) | | Sets a name for this interceptor.
Parameters: name - |
start | public void start()(Code) | | |
toString | public String toString()(Code) | | Returns a string representation of this interceptor instance.
string representation |
|
|