|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.picocontainer.gems.jmx.AbstractConstructingProvider
public abstract class AbstractConstructingProvider
A DynamicMBeanProvider that constructs StandardMBean instances that as long as an ObjectName and a MBeanInfo can be generated for the component.
Constructor Summary | |
---|---|
AbstractConstructingProvider()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConstructingProvider()
Method Detail |
---|
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 DynamicMBeanProvider
picoContainer
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |