public class StandardMBeanFactory extends Object implements DynamicMBeanFactory
StandardMBean and
ModelMBean provided by the JMX specification. The implementation offers special support for StandardMBeans
following the naming convention for their management interface using the class name of the component with an appended
MBean.| Constructor and Description |
|---|
StandardMBeanFactory() |
| Modifier and Type | Method and Description |
|---|---|
DynamicMBean |
create(Object componentInstance,
Class management,
MBeanInfo mBeanInfo)
Create a StandardMBean for the component.
|
Class |
getDefaultManagementInterface(Class type,
MBeanInfo mBeanInfo)
Determin the management interface for the given type.
|
public StandardMBeanFactory()
public DynamicMBean create(Object componentInstance, Class management, MBeanInfo mBeanInfo)
create in interface DynamicMBeanFactorycomponentInstance - the instance of the Object being exposed for management.management - The management interface. If null the implementation will use the interface
complying with the naming convention for management interfaces.mBeanInfo - The MBeanInfo to use. If null the StandardMBean will use an
automatically generated one.StandardMBean. If the mBeanInfo was not null, it is an instance of a
StandardNanoMBean.DynamicMBeanFactory.create(java.lang.Object, java.lang.Class,
javax.management.MBeanInfo)public Class getDefaultManagementInterface(Class type, MBeanInfo mBeanInfo) throws ClassNotFoundException
MBeanInfo, the class name of the MBean is retrieved a
MBeanInfo that defines this name. Following the naming conventions is the name of the management interface the
same as the class name of the MBean with an appended MBean. The ClassLoader of the type is
used to load the interface type.type - The class of the MBean.mBeanInfo - The MBeanInfo for the MBean. May be null.ClassNotFoundException - If the management interface cannot be found.Copyright © 2003-2014 Codehaus. All Rights Reserved.