|
XMOJO 5 API Docs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This can be implemented by an MBean in order to carry out operations before and after being registered or de-registered from the MBean server.
Method Summary | |
void |
postDeregister()
Allows the MBean to perform any operations needed after having been de-registered in the MBeanServer. |
void |
postRegister(java.lang.Boolean registrationDone)
Allows the MBean to perform any operations needed after having been registered in the MBean server or after the registration has failed. |
void |
preDeregister()
Allows the MBean to perform any operations it needs before being de-registered by the MBean server. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
Allows the MBean to perform any operations it needs before being registered in the MBean server. |
Method Detail |
public ObjectName preRegister(MBeanServer server, ObjectName name) throws java.lang.Exception
server
- The MBean server in which the MBean will be registered.name
- The object name of the MBean.java.lang.Exception
- This exception should be caught by the MBean server
and re-thrown as an MBeanRegistrationException
.public void postRegister(java.lang.Boolean registrationDone)
registrationDone
- Indicates whether or not the MBean has been
successfully registered in the MBean server. The value
false means that the registration phase has failed.public void preDeregister() throws java.lang.Exception
java.lang.Exception
- This exception should be caught by the MBean server
and re-thrown as an MBeanRegistrationException
.public void postDeregister()
|
XMOJO 5 API Docs | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |