org.apache.felix.mosgi.jmx.agent.mx4j.server
Interface MBeanInvoker

All Known Implementing Classes:
ReflectedMBeanInvoker

public interface MBeanInvoker

Invokes methods on standard MBeans.

Actually two implementations are available: one that uses reflection and one that generates on-the-fly a customized MBeanInvoker per each particular MBean and that is implemented with direct calls.
The default is the direct call version, that uses the BCEL to generate the required bytecode on-the-fly.
In the future may be the starting point for MBean interceptors.

Version:
$Revision: 1.1.1.1 $
Author:
Simone Bordet

Method Summary
 Object getAttribute(MBeanMetaData metadata, String attribute)
          Returns the value of the specified attribute.
 Object invoke(MBeanMetaData metadata, String method, String[] signature, Object[] args)
          Invokes the specified operation on the MBean instance
 void setAttribute(MBeanMetaData metadata, javax.management.Attribute attribute)
          Sets the value of the specified attribute.
 

Method Detail

invoke

Object invoke(MBeanMetaData metadata,
              String method,
              String[] signature,
              Object[] args)
              throws javax.management.MBeanException,
                     javax.management.ReflectionException
Invokes the specified operation on the MBean instance

Throws:
javax.management.MBeanException
javax.management.ReflectionException

getAttribute

Object getAttribute(MBeanMetaData metadata,
                    String attribute)
                    throws javax.management.MBeanException,
                           javax.management.AttributeNotFoundException,
                           javax.management.ReflectionException
Returns the value of the specified attribute.

Throws:
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.ReflectionException

setAttribute

void setAttribute(MBeanMetaData metadata,
                  javax.management.Attribute attribute)
                  throws javax.management.MBeanException,
                         javax.management.AttributeNotFoundException,
                         javax.management.InvalidAttributeValueException,
                         javax.management.ReflectionException
Sets the value of the specified attribute.

Throws:
javax.management.MBeanException
javax.management.AttributeNotFoundException
javax.management.InvalidAttributeValueException
javax.management.ReflectionException


Copyright © 2013 The Apache Software Foundation. All Rights Reserved.