|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MBeanRegistration
This interface is implemented by an MBean that wants to perform operations pre and post registration and deregistration.
The preRegister method is called by the MBeanServer before registration.
The postRegister method is called by the MBeanServer after registration.
The preDeregister method is called by the MBeanServer before deregistration.
The postDeregister method is called by the MBeanServer after deregistration.
Method Summary | |
---|---|
void |
postDeregister()
This method is called by the MBeanServer after deregistration takes place. |
void |
postRegister(Boolean registrationDone)
This method is called by the MBeanServer after registration takes place or when registration fails. |
void |
preDeregister()
This method is called by the MBeanServer before deregistration takes place. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
This method is called by the MBeanServer before registration takes place. |
Method Detail |
---|
ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
MBeanServer
- the MBeanServer the MBean is about to be
registered with.ObjectName
- the suggested ObjectName supplied by the
MBeanServer.
Exception
- for any error, the MBean is not registered.void postRegister(Boolean registrationDone)
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.void preDeregister() throws Exception
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
Exception
void postDeregister()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |