mx4j.server
Class ReflectedMBeanInvoker

java.lang.Object
  |
  +--mx4j.server.ReflectedMBeanInvoker
All Implemented Interfaces:
MBeanInvoker
Direct Known Subclasses:
BCELMBeanInvoker

public class ReflectedMBeanInvoker
extends java.lang.Object
implements MBeanInvoker

MBeanInvoker that uses reflection to invoke on MBean instances.


Constructor Summary
ReflectedMBeanInvoker()
           
 
Method Summary
 java.lang.Object getAttribute(mx4j.server.MBeanMetaData metadata, java.lang.String attribute)
          Returns the value of the specified attribute.
 java.lang.Object invoke(mx4j.server.MBeanMetaData metadata, java.lang.String method, java.lang.String[] params, java.lang.Object[] args)
          Invokes the specified operation on the MBean instance
protected  java.lang.Object invokeImpl(mx4j.server.MBeanMetaData metadata, java.lang.String method, java.lang.String[] signature, java.lang.Object[] args)
           
 void setAttribute(mx4j.server.MBeanMetaData metadata, javax.management.Attribute attribute)
          Sets the value of the specified attribute.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReflectedMBeanInvoker

public ReflectedMBeanInvoker()
Method Detail

invoke

public java.lang.Object invoke(mx4j.server.MBeanMetaData metadata,
                               java.lang.String method,
                               java.lang.String[] params,
                               java.lang.Object[] args)
                        throws MBeanException,
                               ReflectionException
Description copied from interface: MBeanInvoker
Invokes the specified operation on the MBean instance

Specified by:
invoke in interface MBeanInvoker
MBeanException
ReflectionException

getAttribute

public java.lang.Object getAttribute(mx4j.server.MBeanMetaData metadata,
                                     java.lang.String attribute)
                              throws MBeanException,
                                     AttributeNotFoundException,
                                     ReflectionException
Description copied from interface: MBeanInvoker
Returns the value of the specified attribute.

Specified by:
getAttribute in interface MBeanInvoker
MBeanException
AttributeNotFoundException
ReflectionException

setAttribute

public void setAttribute(mx4j.server.MBeanMetaData metadata,
                         javax.management.Attribute attribute)
                  throws MBeanException,
                         AttributeNotFoundException,
                         InvalidAttributeValueException,
                         ReflectionException
Description copied from interface: MBeanInvoker
Sets the value of the specified attribute.

Specified by:
setAttribute in interface MBeanInvoker
MBeanException
AttributeNotFoundException
InvalidAttributeValueException
ReflectionException

invokeImpl

protected java.lang.Object invokeImpl(mx4j.server.MBeanMetaData metadata,
                                      java.lang.String method,
                                      java.lang.String[] signature,
                                      java.lang.Object[] args)
                               throws ReflectionException,
                                      MBeanException,
                                      java.lang.IllegalArgumentException
ReflectionException
MBeanException
java.lang.IllegalArgumentException