| javax.management.MBeanRegistration
All known Subclasses: javax.management.relation.RelationSupport, mx4j.log.LoggerBroadcaster, mx4j.tools.mail.SMTP, javax.management.remote.JMXConnectorServer, mx4j.tools.stats.AbstractStatisticsRecorder, mx4j.tools.jython.JythonRunner, test.javax.management.support.PostRegistrationSupport, javax.management.monitor.Monitor, mx4j.tools.remote.proxy.RemoteMBeanProxy, mx4j.monitor.MX4JMonitor, test.javax.management.support.ExceptionGeneratingDMB, javax.management.loading.MLet, javax.management.timer.Timer, javax.management.modelmbean.RequiredModelMBean, mx4j.tools.config.ConfigurationLoader, mx4j.tools.adaptor.http.HttpAdaptor, test.javax.management.support.NullMBeanInfoDMB, javax.management.relation.RelationService,
MBeanRegistration | public interface MBeanRegistration (Code) | | Defines a series of callbacks that allow the MBean to interact with the process of MBean
registration and unregistration performed by the MBeanServer.
Implementing this interface is an easy way for an MBean to get the reference to the
MBeanServer that manages it.
version: $Revision: 1.6 $ |
Method Summary | |
public void | postDeregister() Callback called just after the MBean has been successfully unregistered. | public void | postRegister(Boolean registrationDone) Callback called just after the MBean has been registered (successfully or not). | public void | preDeregister() Callback called just before MBean unregistration from the MBeanServer. | public ObjectName | preRegister(MBeanServer server, ObjectName name) Callback called just before MBean registration in the MBeanServer.
Any exception thrown by this method will cause the MBean registration to abort.
Parameters: server - The MBeanServer on which the MBean will be registered. Parameters: name - The ObjectName of the MBean. |
postDeregister | public void postDeregister()(Code) | | Callback called just after the MBean has been successfully unregistered.
|
postRegister | public void postRegister(Boolean registrationDone)(Code) | | Callback called just after the MBean has been registered (successfully or not).
Parameters: registrationDone - True if the registration was successful, false otherwise. |
preDeregister | public void preDeregister() throws Exception(Code) | | Callback called just before MBean unregistration from the MBeanServer.
Any exception thrown by this method will cause the MBean unregistration to abort.
throws: Exception - Any possible exception generated by this method will be caughtby the MBeanServer and re-thrown as an MBeanRegistrationException to the client. |
preRegister | public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code) | | Callback called just before MBean registration in the MBeanServer.
Any exception thrown by this method will cause the MBean registration to abort.
Parameters: server - The MBeanServer on which the MBean will be registered. Parameters: name - The ObjectName of the MBean. The ObjectName of the registered MBean, must not be null throws: Exception - Any possible exception generated by this method will be caughtby the MBeanServer and re-thrown as an MBeanRegistrationException to the client. |
|
|