JBossMX Parent POM 6.0.0.GA

org.jboss.mx.mxbean
Class MXBeanFactory

java.lang.Object
  extended by org.jboss.mx.mxbean.MXBeanFactory

public class MXBeanFactory
extends Object

MXBeanFactory.

Version:
$Revision: 82920 $
Author:
Adrian Brock

Constructor Summary
MXBeanFactory()
           
 
Method Summary
static
<T> T
makeProxy(MBeanServerConnection mbeanServerConnection, ObjectName objectName, Class<T> mxbeanInterface)
          Create a proxy
static DynamicMBean newMXBean(Object resource)
          Create a new MXBean
static
<T> DynamicMBean
newMXBean(T resource, Class<T> mxbeanInterface)
          Create a new MXBean
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MXBeanFactory

public MXBeanFactory()
Method Detail

makeProxy

public static <T> T makeProxy(MBeanServerConnection mbeanServerConnection,
                              ObjectName objectName,
                              Class<T> mxbeanInterface)
Create a proxy

Type Parameters:
T - the interface type
Parameters:
mbeanServerConnection - the connection
objectName - the object name
mxbeanInterface - the interface
Returns:
the proxy

newMXBean

public static DynamicMBean newMXBean(Object resource)
Create a new MXBean

Parameters:
resource - the resource
Returns:
the MXBean

newMXBean

public static <T> DynamicMBean newMXBean(T resource,
                                         Class<T> mxbeanInterface)
Create a new MXBean

Type Parameters:
T - the interface type
Parameters:
resource - the resource
mxbeanInterface - the interface
Returns:
the MXBean

JBossMX Parent POM 6.0.0.GA

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