public abstract class AbstractConstructingProvider extends Object implements DynamicMBeanProvider
| Constructor and Description |
|---|
AbstractConstructingProvider() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract Class |
getManagementInterface(Class implementation,
MBeanInfo mBeanInfo)
Determin the management interface from the component implementation type and an optional MBeanInfo instance.
|
protected abstract DynamicMBeanFactory |
getMBeanFactory() |
protected abstract MBeanInfoProvider[] |
getMBeanInfoProviders()
Deliver the MBeanInfoProvider instances to use.
|
protected abstract ObjectNameFactory |
getObjectNameFactory()
Deliver the ObjectNameFactory used to provide the
ObjectName instances registering the MBeans. |
JMXRegistrationInfo |
provide(PicoContainer picoContainer,
ComponentAdapter componentAdapter)
Create a StandardMBean from the component provided by the ComponentAdapter.
|
public AbstractConstructingProvider()
public JMXRegistrationInfo provide(PicoContainer picoContainer, ComponentAdapter componentAdapter)
MBeanInfoProvider instances must provide a MBeanInfo for the component and the registered
ObjectNameFactory has to provide a proper ObjectName.
Note: An instance of the component is only created, if a management interface is available.
provide in interface DynamicMBeanProviderpicoContainer - The PicoContainer to resolve dependencies.componentAdapter - The ComponentAdapter referring the component.DynamicMBeanProvider.provide(org.picocontainer.PicoContainer,
org.picocontainer.ComponentAdapter)protected abstract DynamicMBeanFactory getMBeanFactory()
DynamicMBeanFactory to use.protected abstract ObjectNameFactory getObjectNameFactory()
ObjectName instances registering the MBeans.ObjectNameFactory instance.protected abstract MBeanInfoProvider[] getMBeanInfoProviders()
MBeanInfo for a MBean to create. It is valid for an implementation to return an empty array.MBeanInfoProvider instances.protected abstract Class getManagementInterface(Class implementation, MBeanInfo mBeanInfo) throws ClassNotFoundException
implementation - 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.