org.jboss.mx.server
Class RawDynamicInvoker
java.lang.Object
org.jboss.mx.server.AbstractMBeanInvoker
org.jboss.mx.server.RawDynamicInvoker
- All Implemented Interfaces:
- DynamicMBean, MBeanRegistration, NotificationBroadcaster, NotificationEmitter, Interceptable, MBeanInvoker, Suspendable
- Direct Known Subclasses:
- RequiredModelMBeanInvoker
public class RawDynamicInvoker
- extends AbstractMBeanInvoker
- Version:
- $Revision: 99444 $
- Author:
- Juha Lindfors.
| Fields inherited from class org.jboss.mx.server.AbstractMBeanInvoker |
attributeContextMap, constructorContextMap, dynamicResource, getMBeanInfoCtx, info, log, operationContextMap, postDeregisterCtx, postRegisterCtx, preDeregisterCtx, preRegisterCtx, resourceEntry |
| Methods inherited from class org.jboss.mx.server.AbstractMBeanInvoker |
addNotificationListener, addNotificationListenerToResource, addOperationInterceptor, getInvocationTimeout, getMBeanEntry, getMetaData, getNotificationInfo, getNotificationInfoFromResource, getObjectName, getResource, getServer, getSignatureString, initAttributeContexts, initDispatchers, initOperationContexts, inject, invokePostDeregister, invokePostRegister, invokePreDeregister, invokePreRegister, isSuspended, override, removeNotificationListener, removeNotificationListener, removeNotificationListenerFromResource, removeNotificationListenerFromResource, removeOperationInterceptor, resume, setInvocationTimeout, setMBeanEntry, setResource, suspend, suspend, suspend, updateAttributeInfo |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RawDynamicInvoker
public RawDynamicInvoker(DynamicMBean resource)
setAttribute
public void setAttribute(Attribute attribute)
throws AttributeNotFoundException,
InvalidAttributeValueException,
MBeanException,
ReflectionException
- Description copied from class:
AbstractMBeanInvoker
- Sets an attribute value. The operation is forced through a set of
interceptors before the new value for the attribute is set.
- Specified by:
setAttribute in interface DynamicMBean- Overrides:
setAttribute in class AbstractMBeanInvoker
- Parameters:
attribute - new attribute value
- Throws:
AttributeNotFoundException - if the requested attribute is not part
of the MBean's management interface
InvalidAttributeValueException - if the attribute contains a value
not suitable for the attribute
MBeanException - if setting the attribute value causes an
application exception
ReflectionException - if there was an error trying to set the
attribute value.
setAttributes
public AttributeList setAttributes(AttributeList attributes)
- Specified by:
setAttributes in interface DynamicMBean- Overrides:
setAttributes in class AbstractMBeanInvoker
getAttribute
public Object getAttribute(String name)
throws AttributeNotFoundException,
MBeanException,
ReflectionException
- Description copied from class:
AbstractMBeanInvoker
- Returns an attribte value. The request for the value is forced through a
set of interceptors before the value is returned.
- Specified by:
getAttribute in interface DynamicMBean- Overrides:
getAttribute in class AbstractMBeanInvoker
- Parameters:
name - attribute name
- Returns:
- attribute value
- Throws:
AttributeNotFoundException - if the requested attribute is not part
of the MBean's management interface
MBeanException - if retrieving the attribute value causes an
application exception
ReflectionException - if there was an error trying to retrieve the
attribute value
getAttributes
public AttributeList getAttributes(String[] attributes)
- Specified by:
getAttributes in interface DynamicMBean- Overrides:
getAttributes in class AbstractMBeanInvoker
invoke
public Object invoke(String name,
Object[] args,
String[] signature)
throws MBeanException,
ReflectionException
- Description copied from class:
AbstractMBeanInvoker
- 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.
- Specified by:
invoke in interface DynamicMBean- Overrides:
invoke in class AbstractMBeanInvoker
- Parameters:
name - name of the target methodargs - argumetns for the target methodsignature - signature of the target method
- Throws:
MBeanException - if the target method raised a hecked exception
ReflectionException - if there was an error trying to resolve or
invoke the target method
getMBeanInfo
public MBeanInfo getMBeanInfo()
- Specified by:
getMBeanInfo in interface DynamicMBean- Overrides:
getMBeanInfo in class AbstractMBeanInvoker
preRegister
public ObjectName preRegister(MBeanServer server,
ObjectName oname)
throws Exception
- Description copied from class:
AbstractMBeanInvoker
- 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.
- Specified by:
preRegister in interface MBeanRegistration- Overrides:
preRegister in class AbstractMBeanInvoker
- Throws:
Exception
postRegister
public void postRegister(Boolean b)
- Specified by:
postRegister in interface MBeanRegistration- Overrides:
postRegister in class AbstractMBeanInvoker
preDeregister
public void preDeregister()
throws Exception
- Specified by:
preDeregister in interface MBeanRegistration- Overrides:
preDeregister in class AbstractMBeanInvoker
- Throws:
Exception
postDeregister
public void postDeregister()
- Specified by:
postDeregister in interface MBeanRegistration- Overrides:
postDeregister in class AbstractMBeanInvoker
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.