public class NamingConventionConstructingProvider extends AbstractConstructingProvider
ComponentKeyConventionMBeanInfoProvider and ComponentTypeConventionMBeanInfoProvider to provide a
MBeanInfo for the component's MBean. If a MBeanInfo was found, the MBean's type is used from the
MBeanInfo otherwise the type is the implementation class of the component.| Constructor and Description |
|---|
NamingConventionConstructingProvider(ObjectNameFactory factory)
Construct a NamingConventionConstructingProvider.
|
| Modifier and Type | Method and Description |
|---|---|
protected Class |
getManagementInterface(Class implementation,
MBeanInfo mBeanInfo)
Determin the default management interface using naming convetions of the JMX specification.
|
protected DynamicMBeanFactory |
getMBeanFactory()
Return a
StandardMBeanFactory. |
MBeanInfoProvider[] |
getMBeanInfoProviders()
Return an array with an instance of type
ComponentKeyConventionMBeanInfoProvider and
ComponentTypeConventionMBeanInfoProvider. |
ObjectNameFactory |
getObjectNameFactory()
Deliver the ObjectNameFactory used to provide the
ObjectName instances registering the MBeans. |
providepublic NamingConventionConstructingProvider(ObjectNameFactory factory)
MBeanInfoProvider instances are registered
with this constructor:
factory - The ObjectNameFactory used to name the created MBeans.protected DynamicMBeanFactory getMBeanFactory()
StandardMBeanFactory.getMBeanFactory in class AbstractConstructingProviderDynamicMBeanFactory to use.AbstractConstructingProvider.getMBeanFactory()public ObjectNameFactory getObjectNameFactory()
AbstractConstructingProviderObjectName instances registering the MBeans.getObjectNameFactory in class AbstractConstructingProviderObjectNameFactory instance.AbstractConstructingProvider.getObjectNameFactory()public MBeanInfoProvider[] getMBeanInfoProviders()
ComponentKeyConventionMBeanInfoProvider and
ComponentTypeConventionMBeanInfoProvider.getMBeanInfoProviders in class AbstractConstructingProviderMBeanInfoProvider instances.AbstractConstructingProvider.getMBeanInfoProviders()protected Class getManagementInterface(Class implementation, MBeanInfo mBeanInfo) throws ClassNotFoundException
getManagementInterface in class AbstractConstructingProviderimplementation - The type of the component's implementation.mBeanInfo - The MBeanInfo to expose the component. May be null.ClassNotFoundException - Thrown if no interface can be determined.Copyright © 2003-2014 Codehaus. All Rights Reserved.