Save This Page
Home » jboss-5.0.0.CR1-src » org.jboss.mx » interceptor » [javadoc | source]
org.jboss.mx.interceptor
abstract public class: AbstractInterceptor [javadoc | source]
java.lang.Object
   org.jboss.mx.interceptor.AbstractInterceptor

All Implemented Interfaces:
    Interceptor

Direct Known Subclasses:
    MBeanAttributeInterceptor, JNDISecurity, NullInterceptor, DynamicInterceptor, NullDispatcher, XMBeanInterceptor, AuthorizationInterceptor, JNDIPersistence, ReflectedDispatcher, StandardMBeanInterceptor, AttributeDispatcher, ModelMBeanInterceptor, ModelMBeanInfoInterceptor, AbstractSharedInterceptor, SubDeployerInterceptor, ProxyFactoryInterceptor, ModelMBeanOperationInterceptor, ProxyFactoryInterceptor, SecurityInterceptor, PersistenceInterceptor, PrincipalInterceptor, SerializableInterceptor, XMBeanInterceptor, LogInterceptor, AuthenticationInterceptor, ObjectReferenceInterceptor, SecurityInterceptor, PersistenceInterceptor2, SRPCacheInterceptor, ModelMBeanAttributeInterceptor, StandardMBeanInfoInterceptor

Base class for all interceptors. This class provides some default method implementations for interceptors.
Field Summary
protected  String name    Name for this interceptor. 
protected  boolean isShared    Indicates whether this interceptor instance is shared or not. 
protected  Logger log    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. 
Constructor:
 public AbstractInterceptor() 
 public AbstractInterceptor(String name) 
    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
Method from org.jboss.mx.interceptor.AbstractInterceptor Summary:
destroy,   getName,   init,   invoke,   isShared,   setLogger,   setName,   start,   stop,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mx.interceptor.AbstractInterceptor Detail:
 public  void destroy() 
 public String getName() 
 public  void init() throws Exception 
 public Object invoke(Invocation invocation) throws Throwable 
    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.

 public boolean isShared() 
 public  void setLogger(Logger log) 
 public  void setName(String name) 
    Sets a name for this interceptor.
 public  void start() 
 public  void stop() throws Exception 
 public String toString() 
    Returns a string representation of this interceptor instance.