mx4j.server

Interface MBeanInvoker

public interface MBeanInvoker

Invokes methods on standard MBeans.
Actually three implementations are available: two that uses reflection and one that generates on-the-fly a customized MBeanInvoker per each MBean and that is implemented with direct calls via bytecode generation.
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.6 $

Method Summary
ObjectgetAttribute(MBeanMetaData metadata, String attribute)
Returns the value of the specified attribute.
Objectinvoke(MBeanMetaData metadata, String method, String[] signature, Object[] args)
Invokes the specified operation on the MBean instance
voidsetAttribute(MBeanMetaData metadata, Attribute attribute)
Sets the value of the specified attribute.

Method Detail

getAttribute

public Object getAttribute(MBeanMetaData metadata, String attribute)
Returns the value of the specified attribute.

invoke

public Object invoke(MBeanMetaData metadata, String method, String[] signature, Object[] args)
Invokes the specified operation on the MBean instance

setAttribute

public void setAttribute(MBeanMetaData metadata, Attribute attribute)
Sets the value of the specified attribute.
Copyright © 2001-2005 The MX4J Contributors. All Rights Reserved.