|
Préférences
Moteurs de recherche
|
||||||||||
JavaTM 2 Platform Std. Ed. v1.6.0
javax.management
|
Method Summary | |
---|---|
void |
postDeregister()
Allows the MBean to perform any operations needed after having been unregistered in the MBean server. |
void |
postRegister(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 unregistered 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 |
---|
ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception
server
- The MBean server in which the MBean will be registered.name
- The object name of the MBean. This name is null if
the name parameter to one of the createMBean
or
registerMBean
methods in the MBeanServer
interface is null. In that case, this method must return a
non-null ObjectName for the new MBean.
name
parameter is not null, it will usually but not necessarily be
the returned value.
Exception
- This exception will be caught by
the MBean server and re-thrown as an MBeanRegistrationException
.void postRegister(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.void preDeregister() throws Exception
Exception
- This exception will be caught by
the MBean server and re-thrown as an MBeanRegistrationException
.void postDeregister()