|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.ipojo.Handler
org.apache.felix.ipojo.PrimitiveHandler
org.apache.felix.ipojo.handlers.jmx.MBeanHandler
public class MBeanHandler
This class implements iPOJO Handler. it builds the dynamic MBean from metadata.xml and exposes it to the MBean Server.
Field Summary | |
---|---|
static String |
POST_DEREGISTER_METH_NAME
The name of the MBeanRegistration postDeregister method. |
static String |
POST_REGISTER_METH_NAME
The name of the MBeanRegistration postRegister method. |
static String |
PRE_DEREGISTER_METH_NAME
The name of the MBeanRegistration preDeregister method. |
static String |
PRE_REGISTER_METH_NAME
The name of the MBeanRegistration preRegister method. |
Fields inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
HANDLER_TYPE |
Fields inherited from class org.apache.felix.ipojo.Handler |
---|
HANDLER_LEVEL_PROPERTY, HANDLER_NAME_PROPERTY, HANDLER_NAMESPACE_PROPERTY, HANDLER_TYPE_PROPERTY, m_instance, m_isValid |
Constructor Summary | |
---|---|
MBeanHandler()
|
Method Summary | |
---|---|
void |
configure(Element metadata,
Dictionary dict)
Constructs the structure JmxConfigFieldMap and the Dynamic Mbean. |
HandlerDescription |
getDescription()
Gets the JMX handler description. |
String |
getUsedObjectName()
Returns the objectName used to register the MBean. |
boolean |
isMOSGiExists()
Returns true if the MOSGi framework is present on the OSGi platform. |
boolean |
isRegistered()
Returns true if the MBean is registered. |
boolean |
isUsesMOSGi()
Returns true if the MBean must be registered thanks to white board pattern of MOSGi. |
Object |
onGet(Object pojo,
String fieldName,
Object value)
Called when a POJO member is read by the MBean. |
void |
onSet(Object pojo,
String fieldName,
Object value)
Called when a POJO member is modified externally. |
void |
start()
Registers the Dynamic Mbean. |
void |
stop()
Unregisters the Dynamic Mbean. |
Methods inherited from class org.apache.felix.ipojo.PrimitiveHandler |
---|
attach, getConstructorParameter, getConstructorParameterType, getFactory, getHandler, getInstanceManager, getLogger, getPojoMetadata, onCreation, onEntry, onError, onExit, onFinally, setFactory |
Methods inherited from class org.apache.felix.ipojo.Handler |
---|
debug, error, error, getHandlerManager, getValidity, info, initializeComponentFactory, isValid, reconfigure, setValidity, stateChanged, warn, warn |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String POST_DEREGISTER_METH_NAME
public static final String PRE_DEREGISTER_METH_NAME
public static final String POST_REGISTER_METH_NAME
public static final String PRE_REGISTER_METH_NAME
Constructor Detail |
---|
public MBeanHandler()
Method Detail |
---|
public void configure(Element metadata, Dictionary dict)
configure
in class Handler
metadata
- the component metadatadict
- the instance configurationpublic void start()
start
in class Handler
public void stop()
stop
in class Handler
public void onSet(Object pojo, String fieldName, Object value)
onSet
in interface FieldInterceptor
onSet
in class PrimitiveHandler
pojo
- the modified POJO objectfieldName
- the name of the modified fieldvalue
- the new value of the fieldFieldInterceptor#onSet(Object, String, Object)
public Object onGet(Object pojo, String fieldName, Object value)
onGet
in interface FieldInterceptor
onGet
in class PrimitiveHandler
pojo
- the read POJO object.fieldName
- the name of the modified fieldvalue
- the old value of the field
FieldInterceptor#onGet(Object, String, Object)
public HandlerDescription getDescription()
getDescription
in class Handler
Handler.getDescription()
public String getUsedObjectName()
Handler.getDescription()
public boolean isRegistered()
public boolean isUsesMOSGi()
true
if the MBean must be registered thanks to white board pattern of MOSGi, false otherwise.public boolean isMOSGiExists()
true
if the MOSGi framework is present on the OSGi platform, false otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |