|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.management.NotificationBroadcasterSupport
org.apache.felix.ipojo.handlers.jmx.DynamicMBeanImpl
org.apache.felix.ipojo.handlers.jmx.DynamicMBeanWRegisterImpl
public class DynamicMBeanWRegisterImpl
This class implements a 'wide' iPOJO DynamicMBean that can perform actions before and after its registration and deregistration.
| Field Summary |
|---|
| Fields inherited from class org.apache.felix.ipojo.handlers.jmx.DynamicMBeanImpl |
|---|
m_instanceManager |
| Constructor Summary | |
|---|---|
DynamicMBeanWRegisterImpl(JmxConfigFieldMap properties,
InstanceManager instanceManager,
MethodMetadata preRegisterMeth,
MethodMetadata postRegisterMeth,
MethodMetadata preDeregisterMeth,
MethodMetadata postDeregisterMeth)
Constructs a new DynamicMBeanWRegisterImpl. |
|
| Method Summary | |
|---|---|
javax.management.ObjectName |
getObjectName()
Returns the MBean name used to register it. |
void |
postDeregister()
This method is executed after the MBean deregistration. |
void |
postRegister(Boolean registrationDone)
This method is executed after the MBean registration. |
void |
preDeregister()
This method is before after the MBean deregistration. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
This method is executed before the MBean registration. |
| Methods inherited from class org.apache.felix.ipojo.handlers.jmx.DynamicMBeanImpl |
|---|
getAttribute, getAttributes, getMBeanInfo, getNotificationInfo, invoke, sendNotification, setAttribute, setAttributes |
| Methods inherited from class javax.management.NotificationBroadcasterSupport |
|---|
addNotificationListener, handleNotification, removeNotificationListener, removeNotificationListener, sendNotification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicMBeanWRegisterImpl(JmxConfigFieldMap properties,
InstanceManager instanceManager,
MethodMetadata preRegisterMeth,
MethodMetadata postRegisterMeth,
MethodMetadata preDeregisterMeth,
MethodMetadata postDeregisterMeth)
properties - the data extracted from the metadata.xmlinstanceManager - the instance managerpreRegisterMeth - the method to call before MBean registrationpostRegisterMeth - the method to call after MBean registrationpreDeregisterMeth - the method to call before MBean deregistrationpostDeregisterMeth - the method to call after MBean registration| Method Detail |
|---|
public javax.management.ObjectName getObjectName()
public javax.management.ObjectName preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
throws Exception
preRegister in interface javax.management.MBeanRegistrationserver - the server on which the MBean will be registeredname - the name of the MBean to expose
Exception - This exception will be caught by the MBean server and re-thrown as an MBeanRegistrationException.public void postRegister(Boolean registrationDone)
postRegister in interface javax.management.MBeanRegistrationregistrationDone - indicates whether or not the MBean has been successfully registered in the MBean server.
public void preDeregister()
throws Exception
preDeregister in interface javax.management.MBeanRegistrationException - This exception will be caught by the MBean server and re-thrown as an MBeanRegistrationException.public void postDeregister()
postDeregister in interface javax.management.MBeanRegistration
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||