|
![]() |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.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, 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
componentMonitor
- the component monitorlifecycleStrategy
- te lifecycle strategycomponentProperties
- the component propertiescomponentKey
- the key to be associated with this adapter. This
value should be returned from a call to
ComponentAdapter.getComponentKey()
on the created
adapter.componentImplementation
- the implementation class to be associated
with this adapter. This value should be returned from a call
to ComponentAdapter.getComponentImplementation()
on
the created adapter. Should not be null.parameters
- additional parameters to use by the component adapter
in constructing component instances. These may be used, for
example, to make decisions about the arguments passed into the
component constructor. These should be considered hints; they
may be ignored by some implementations. May be null, and may
be of zero length.
PicoCompositionException
- if the creation of the component adapter
results in a 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 |