|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.picocontainer.gems.jmx.AbstractConstructingProvider
org.picocontainer.gems.jmx.NamingConventionConstructingProvider
public class NamingConventionConstructingProvider
A DynamicMBeanProvider that constructs StandardMBean instances that follow the JMX naming conventions. The name of
the management interface must follow the naming conventions with an MBean appended to the MBean's type.
The implementation will use the registered MBeanInfoProvider instances of type
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 Summary | |
|---|---|
NamingConventionConstructingProvider(ObjectNameFactory factory)
Construct a NamingConventionConstructingProvider. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.picocontainer.gems.jmx.AbstractConstructingProvider |
|---|
provide |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamingConventionConstructingProvider(ObjectNameFactory factory)
MBeanInfoProvider instances are registered
with this constructor:
factory - The ObjectNameFactory used to name the created MBeans.| Method Detail |
|---|
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.
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||