|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.picocontainer.behaviors.AbstractBehaviorFactory org.picocontainer.gems.jmx.JMXExposing
public class JMXExposing
ComponentFactory
that instantiates JMXExposed
instances.
Constructor Summary | |
---|---|
JMXExposing()
Constructs a JMXExposingComponentFactory that uses the system default MBean Server. |
|
JMXExposing(MBeanServer mBeanServer)
Construct a JMXExposingComponentFactory. |
|
JMXExposing(MBeanServer mBeanServer,
DynamicMBeanProvider[] providers)
Construct a JMXExposingComponentFactory. |
Method Summary | ||
---|---|---|
|
addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter)
|
|
|
createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Retrieve a ComponentAdapter . |
Methods inherited from class org.picocontainer.behaviors.AbstractBehaviorFactory |
---|
accept, arePropertiesPresent, getAndRemovePropertiesIfPresentByKey, mergeProperties, removePropertiesIfPresent, verify, wrap |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JMXExposing()
public JMXExposing(MBeanServer mBeanServer, DynamicMBeanProvider[] providers) throws NullPointerException
mBeanServer
- The MBeanServer
used for registering the MBean.providers
- An array with providers for converting the component instance into a
DynamicMBean
.
NullPointerException
- Thrown if the MBeanServer
or the array with the DynamicMBeanProvider
instances is null.public JMXExposing(MBeanServer mBeanServer) throws NullPointerException
DynamicMBeanComponentProvider
as
default to register any component instance in the MBeanServer
, that is already a
DynamicMBean
.
mBeanServer
- The MBeanServer
used for registering the MBean.
NullPointerException
- Thrown if the MBeanServer
or the array with the DynamicMBeanProvider
instances is null.Method Detail |
---|
public <T> ComponentAdapter<T> createComponentAdapter(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, Object componentKey, Class<T> componentImplementation, Parameter... parameters) throws PicoCompositionException
ComponentAdapter
. Wrap the instance retrieved by the delegate with an instance of a
JMXExposed
.
createComponentAdapter
in interface ComponentFactory
createComponentAdapter
in class AbstractBehaviorFactory
PicoCompositionException
ComponentFactory.createComponentAdapter(ComponentMonitor,LifecycleStrategy,Properties,Object,Class,Parameter...)
public <T> ComponentAdapter<T> addComponentAdapter(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter)
addComponentAdapter
in interface BehaviorFactory
addComponentAdapter
in class AbstractBehaviorFactory
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |