| java.lang.Object org.jboss.mx.server.AbstractMBeanInvoker
All known Subclasses: org.jboss.mx.modelmbean.ModelMBeanInvoker, org.jboss.mx.server.RawDynamicInvoker,
Inner Class :final protected class OperationKey | |
Method Summary | |
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) Returns an attribte value. | public AttributeList | getAttributes(java.lang.String[] attributes) | public long | getInvocationTimeout() | public static MBeanEntry | getMBeanEntry() | 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) | public Object | invoke(String operationName, Object[] args, String[] signature) Invokes the target resource. | protected void | invokePostDeregister() | protected void | invokePostRegister(Boolean b) | protected void | invokePreDeregister() | protected ObjectName | invokePreRegister(MBeanServer server, ObjectName name) | public boolean | isSuspended() | protected void | override(Invocation invocation) | public void | postDeregister() | public void | postRegister(Boolean registrationSuccessful) | public void | preDeregister() | public ObjectName | preRegister(MBeanServer server, ObjectName name) Initializes this invoker. | public void | removeNotificationListener(NotificationListener listener) | public void | removeNotificationListener(NotificationListener listener, NotificationFilter filter, Object handback) | protected void | removeNotificationListenerFromResource(NotificationListener listener) | protected void | removeNotificationListenerFromResource(NotificationListener listener, NotificationFilter filter, Object handback) | public void | removeOperationInterceptor(Interceptor interceptor) | public void | resume() | public void | setAttribute(Attribute attribute) Sets an attribute value. | 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) | public void | suspend() | public void | suspend(long wait) | public void | suspend(boolean force) | public void | updateAttributeInfo(Descriptor attrDesc) |
attributeContextMap | protected Map attributeContextMap(Code) | | |
constructorContextMap | protected Map constructorContextMap(Code) | | |
dynamicResource | protected boolean dynamicResource(Code) | | Whether this is a dynamic resource
|
operationContextMap | protected Map operationContextMap(Code) | | |
preRegisterInfo | static ThreadLocal preRegisterInfo(Code) | | Used to propagate the MBeanEntry during the preRegister callback
|
resourceEntry | protected MBeanEntry resourceEntry(Code) | | The mbean server register entry used for the TCL
|
AbstractMBeanInvoker | public AbstractMBeanInvoker()(Code) | | Constructs a new invoker.
|
AbstractMBeanInvoker | public AbstractMBeanInvoker(Object resource)(Code) | | Constructs a new invoker with a given target resource.
|
AbstractMBeanInvoker | public AbstractMBeanInvoker(MBeanEntry resourceEntry)(Code) | | Constructs an invoker with the target resource entry.
Parameters: resourceEntry - |
addOperationInterceptor | public void addOperationInterceptor(Interceptor interceptor)(Code) | | Add dynamically an operation interceptor, first in the chain.
|
getInvocationTimeout | public long getInvocationTimeout()(Code) | | |
getMBeanEntry | public static MBeanEntry getMBeanEntry()(Code) | | An accessor for the MBeanEntry thread local
|
initDispatchers | protected void initDispatchers()(Code) | | |
inject | protected void inject(String type, String name, Class argType, Object value)(Code) | | Inject context from the xmbean layer to the resource
Parameters: type - - the type of injection Parameters: name - - the setter method name of the resource Parameters: argType - - the injection data type Parameters: value - - the injection data value to pass to the setter |
invoke | public Object invoke(String operationName, Object[] args, String[] signature) throws MBeanException, ReflectionException(Code) | | 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.
Parameters: operationName - name of the target method Parameters: args - argumetns for the target method Parameters: signature - signature of the target method throws: MBeanException - if the target method raised a hecked exception throws: ReflectionException - if there was an error trying to resolve orinvoke the target method throws: RuntimeMBeanException - if the target method raised an uncheckedexception |
invokePostDeregister | protected void invokePostDeregister()(Code) | | |
invokePostRegister | protected void invokePostRegister(Boolean b)(Code) | | |
invokePreDeregister | protected void invokePreDeregister() throws Exception(Code) | | |
isSuspended | public boolean isSuspended()(Code) | | |
postDeregister | public void postDeregister()(Code) | | |
postRegister | public void postRegister(Boolean registrationSuccessful)(Code) | | |
preRegister | public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code) | | 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.
|
removeOperationInterceptor | public void removeOperationInterceptor(Interceptor interceptor)(Code) | | Remove the specified operation interceptor
|
resume | public void resume()(Code) | | |
setInvocationTimeout | public void setInvocationTimeout(long time)(Code) | | |
setMBeanEntry | public static void setMBeanEntry(MBeanEntry entry)(Code) | | Set the MBeanEntry thread local value.
Parameters: entry - - the entry that will be used on successful registration |
setResource | public void setResource(Object resource)(Code) | | 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
Parameters: resource - - the model mbean resource |
suspend | public void suspend()(Code) | | |
suspend | public void suspend(boolean force)(Code) | | |
|
|