public class JMXExposing extends AbstractBehaviorFactory
ComponentFactory that instantiates JMXExposed instances.| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
<T> ComponentAdapter<T> |
addComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
ComponentAdapter<T> adapter) |
<T> ComponentAdapter<T> |
createComponentAdapter(ComponentMonitor componentMonitor,
LifecycleStrategy lifecycleStrategy,
Properties componentProperties,
Object componentKey,
Class<T> componentImplementation,
Parameter... parameters)
Retrieve a
ComponentAdapter. |
accept, arePropertiesPresent, getAndRemovePropertiesIfPresentByKey, mergeProperties, removePropertiesIfPresent, verify, wrappublic 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.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 ComponentFactorycreateComponentAdapter in class AbstractBehaviorFactoryPicoCompositionExceptionComponentFactory.createComponentAdapter(ComponentMonitor,LifecycleStrategy,Properties,Object,Class,Parameter...)public <T> ComponentAdapter<T> addComponentAdapter(ComponentMonitor componentMonitor, LifecycleStrategy lifecycleStrategy, Properties componentProperties, ComponentAdapter<T> adapter)
addComponentAdapter in interface BehaviorFactoryaddComponentAdapter in class AbstractBehaviorFactoryCopyright © 2003-2014 Codehaus. All Rights Reserved.