org.apache.felix.mosgi.jmx.agent.mx4j.server
Class ReflectedMBeanInvoker

java.lang.Object
  extended by org.apache.felix.mosgi.jmx.agent.mx4j.server.ReflectedMBeanInvoker
All Implemented Interfaces:
MBeanInvoker

public class ReflectedMBeanInvoker
extends Object
implements MBeanInvoker

MBeanInvoker that uses reflection to invoke on MBean instances.

Version:
$Revision: 1.1.1.1 $
Author:
Simone Bordet

Constructor Summary
ReflectedMBeanInvoker()
           
 
Method Summary
 Object getAttribute(MBeanMetaData metadata, String attribute)
          Returns the value of the specified attribute.
 Object invoke(MBeanMetaData metadata, String method, String[] params, Object[] args)
          Invokes the specified operation on the MBean instance
protected  Object invokeImpl(MBeanMetaData metadata, String method, String[] signature, Object[] args)
           
 void setAttribute(MBeanMetaData metadata, 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 Object invoke(MBeanMetaData metadata,
                     String method,
                     String[] params,
                     Object[] args)
              throws MBeanException,
                     ReflectionException
Description copied from interface: MBeanInvoker
Invokes the specified operation on the MBean instance

Specified by:
invoke in interface MBeanInvoker
Throws:
MBeanException
ReflectionException

getAttribute

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

Specified by:
getAttribute in interface MBeanInvoker
Throws:
MBeanException
AttributeNotFoundException
ReflectionException

setAttribute

public void setAttribute(MBeanMetaData metadata,
                         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
Throws:
MBeanException
AttributeNotFoundException
InvalidAttributeValueException
ReflectionException

invokeImpl

protected Object invokeImpl(MBeanMetaData metadata,
                            String method,
                            String[] signature,
                            Object[] args)
                     throws ReflectionException,
                            MBeanException,
                            IllegalArgumentException
Throws:
ReflectionException
MBeanException
IllegalArgumentException


Copyright © 2011 Apache Software Foundation. All Rights Reserved.