|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MBeanRegistration
Beans may implement this interface in order to perform operations immediately prior to or after their registration or deregistration.
Method Summary | |
---|---|
void |
postDeregister()
This method is called following deregistration of the bean by the server. |
void |
postRegister(Boolean successful)
This method is called following both successful and unsuccessful attempts to register the bean. |
void |
preDeregister()
This method is called prior to de-registration, and may throw an exception. |
ObjectName |
preRegister(MBeanServer server,
ObjectName name)
This method is called prior to registration, with a reference to the server and ObjectName supplied to the server for registration. |
Method Detail |
---|
void postDeregister()
void postRegister(Boolean successful)
successful
- true if the registration was successful.void preDeregister() throws Exception
Exception
- if something goes wrong during the bean's pre-deregistration
operation. The server will re-throw this exception
as an MBeanRegistrationException
.ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
ObjectName
supplied to the server for registration.
This method may be used to replace this name by one chosen by the bean.
Such behaviour is expected if the supplied name is null
,
but may occur in all cases. The method may throw an exception, which
will cause registration to be aborted.
server
- the server with which the bean is being registered.name
- the name the server was supplied with for registration,
which may be null
.
Exception
- if something goes wrong during the bean's pre-registration
operation. The server will re-throw this exception
as an MBeanRegistrationException
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |