org.jboss.mx.mxbean
Class MXBeanInvocationHandler

java.lang.Object
  extended by org.jboss.mx.mxbean.MXBeanInvocationHandler
All Implemented Interfaces:
Serializable, InvocationHandler

public class MXBeanInvocationHandler
extends Object
implements InvocationHandler, Serializable

MXBeanInvocationHandler.

Version:
$Revision: 85945 $
Author:
Adrian Brock
See Also:
Serialized Form

Constructor Summary
MXBeanInvocationHandler(MBeanServerConnection mbeanServerConnection, Class<?> mxbeanInterface, ObjectName objectName)
          Create a new MXBeanInvocationHandler.
 
Method Summary
 MBeanServerConnection getMBeanServerConnection()
          Get the mbeanServerConnection.
 Class<?> getMXBeanInterface()
          Get the mxbeanInterface.
 ObjectName getObjectName()
          Get the objectName.
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MXBeanInvocationHandler

public MXBeanInvocationHandler(MBeanServerConnection mbeanServerConnection,
                               Class<?> mxbeanInterface,
                               ObjectName objectName)
Create a new MXBeanInvocationHandler.

Parameters:
mbeanServerConnection - the connection
mxbeanInterface - the interface
objectName - the object name
Method Detail

getMBeanServerConnection

public MBeanServerConnection getMBeanServerConnection()
Get the mbeanServerConnection.

Returns:
the mbeanServerConnection.

getMXBeanInterface

public Class<?> getMXBeanInterface()
Get the mxbeanInterface.

Returns:
the mxbeanInterface.

getObjectName

public ObjectName getObjectName()
Get the objectName.

Returns:
the objectName.

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2009 JBoss, a division of Red Hat, Inc.. All Rights Reserved.