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

All Implemented Interfaces:
    MBeanInvoker

Direct Known Subclasses:
    XMBean, RequiredModelMBeanInvoker, RawDynamicInvoker, ModelMBeanInvoker

A base MBeanInvoker class that provides common state
Nested Class Summary:
protected final class  AbstractMBeanInvoker.OperationKey   
Field Summary
static  ThreadLocal preRegisterInfo    Used to propagate the MBeanEntry during the preRegister callback 
protected  MBeanEntry resourceEntry    The mbean server register entry used for the TCL 
protected  boolean dynamicResource    Whether this is a dynamic resource 
protected  MBeanInfo info    The metadata describing this MBean. 
protected  Map attributeContextMap     
protected  Map operationContextMap     
protected  Map constructorContextMap     
protected  InvocationContext getMBeanInfoCtx     
protected  InvocationContext preRegisterCtx     
protected  InvocationContext postRegisterCtx     
protected  InvocationContext preDeregisterCtx     
protected  InvocationContext postDeregisterCtx     
protected  Logger log     
Constructor:
 public AbstractMBeanInvoker() 
 public AbstractMBeanInvoker(Object resource) 
    Constructs a new invoker with a given target resource.
 public AbstractMBeanInvoker(MBeanEntry resourceEntry) 
    Constructs an invoker with the target resource entry.
    Parameters:
    resourceEntry -
Method from org.jboss.mx.server.AbstractMBeanInvoker Summary:
addNotificationListener,   addNotificationListenerToResource,   addOperationInterceptor,   getAttribute,   getAttributes,   getInvocationTimeout,   getMBeanEntry,   getMBeanInfo,   getMetaData,   getNotificationInfo,   getNotificationInfoFromResource,   getObjectName,   getResource,   getServer,   getSignatureString,   initAttributeContexts,   initDispatchers,   initOperationContexts,   inject,   invoke,   invokePostDeregister,   invokePostRegister,   invokePreDeregister,   invokePreRegister,   isSuspended,   override,   postDeregister,   postRegister,   preDeregister,   preRegister,   removeNotificationListener,   removeNotificationListener,   removeNotificationListenerFromResource,   removeNotificationListenerFromResource,   removeOperationInterceptor,   resume,   setAttribute,   setAttributes,   setInvocationTimeout,   setMBeanEntry,   setResource,   suspend,   suspend,   suspend,   updateAttributeInfo
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.mx.server.AbstractMBeanInvoker Detail:
 public  void addNotificationListener(NotificationListener listener,
    NotificationFilter filter,
    Object handback) 
 protected  void addNotificationListenerToResource(NotificationListener listener,
    NotificationFilter filter,
    Object handback) 
 public  void addOperationInterceptor(Interceptor interceptor) 
    Add dynamically an operation interceptor, first in the chain.
 public Object getAttribute(String attribute) throws ReflectionException, AttributeNotFoundException, MBeanException 
    Returns an attribte value. The request for the value is forced through a set of interceptors before the value is returned.
 public AttributeList getAttributes(String[] attributes) 
 public long getInvocationTimeout() 
 public static MBeanEntry getMBeanEntry() 
    An accessor for the MBeanEntry thread local
 public MBeanInfo getMBeanInfo() 
 public MBeanInfo getMetaData() 
 public MBeanNotificationInfo[] getNotificationInfo() 
 protected MBeanNotificationInfo[] getNotificationInfoFromResource() 
 public ObjectName getObjectName() 
 public Object getResource() 
 public MBeanServer getServer() 
 protected String getSignatureString(String[] signature) 
 protected  void initAttributeContexts(MBeanAttributeInfo[] attributes) 
 protected  void initDispatchers() 
 protected  void initOperationContexts(MBeanOperationInfo[] operations) 
 protected  void inject(String type,
    String name,
    Class argType,
    Object value) 
    Inject context from the xmbean layer to the resource
 public Object invoke(String operationName,
    Object[] args,
    String[] signature) throws ReflectionException, MBeanException 
    Invokes the target resource. The default invocation used by this invoker implement sends the invocation through a stack of interceptors before reaching the target method.
 protected  void invokePostDeregister() 
 protected  void invokePostRegister(Boolean b) 
 protected  void invokePreDeregister() throws Exception 
 protected ObjectName invokePreRegister(MBeanServer server,
    ObjectName name) throws Exception 
 public boolean isSuspended() 
 protected  void override(Invocation invocation) throws MBeanException 
    Placeholder to allow subclasses to override the invocation
 public  void postDeregister() 
 public  void postRegister(Boolean registrationSuccessful) 
 public  void preDeregister() throws Exception 
 public ObjectName preRegister(MBeanServer server,
    ObjectName name) throws Exception 
    Initializes this invoker. At the registration time we can be sure that all of the metadata is available and initialize the invoker and cache the data accordingly.

    Subclasses that override the preRegister method must make sure they call super.preRegister() in their implementation to ensure proper initialization of the invoker.

 public  void removeNotificationListener(NotificationListener listener) throws ListenerNotFoundException 
 public  void removeNotificationListener(NotificationListener listener,
    NotificationFilter filter,
    Object handback) throws ListenerNotFoundException 
 protected  void removeNotificationListenerFromResource(NotificationListener listener) throws ListenerNotFoundException 
 protected  void removeNotificationListenerFromResource(NotificationListener listener,
    NotificationFilter filter,
    Object handback) throws ListenerNotFoundException 
 public  void removeOperationInterceptor(Interceptor interceptor) 
    Remove the specified operation interceptor
 public  void resume() 
 public  void setAttribute(Attribute attribute) throws InvalidAttributeValueException, ReflectionException, AttributeNotFoundException, MBeanException 
    Sets an attribute value. The operation is forced through a set of interceptors before the new value for the attribute is set.
 public AttributeList setAttributes(AttributeList attributes) 
 public  void setInvocationTimeout(long time) 
 public static  void setMBeanEntry(MBeanEntry entry) 
    Set the MBeanEntry thread local value.
 public  void setResource(Object resource) 
    Sets the XMBean resource and optionally allows the resource to interact with the jmx microkernel via the following injection points: #ModelMBeanConstants.MBEAN_SERVER_INJECTION_TYPE #ModelMBeanConstants.MBEAN_INFO_INJECTION_TYPE #ModelMBeanConstants.OBJECT_NAME_INJECTION_TYPE
 public  void suspend() 
 public  void suspend(long wait) throws TimeoutException 
 public  void suspend(boolean force) 
 public  void updateAttributeInfo(Descriptor attrDesc) throws MBeanException