| javax.management.MBeanRegistration
All known Subclasses: javax.management.monitor.Monitor, test.compliance.server.support.LockedTest, javax.management.modelmbean.RequiredModelMBean, javax.management.timer.Timer, test.compliance.server.support.LockedTest2, test.compliance.server.support.Test4, javax.management.relation.RelationService, org.jboss.mx.loading.UnifiedLoaderRepository3, javax.management.relation.RelationSupport, test.compliance.server.support.Test3, org.jboss.mx.timer.JBossTimer, test.compliance.server.support.Test2, test.compliance.registration.support.RegistrationAware, test.compliance.server.support.BuilderTest, test.compliance.server.support.LockedTest3, javax.management.loading.MLet,
MBeanRegistration | public interface MBeanRegistration (Code) | | 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.
author: Adrian Brock. version: $Revision: 57200 $ |
Method Summary | |
public void | postDeregister() This method is called by the MBeanServer after deregistration takes
place. | public void | postRegister(Boolean registrationDone) This method is called by the MBeanServer after registration takes
place or when registration fails. | public void | preDeregister() This method is called by the MBeanServer before deregistration takes
place.
The MBean can throw an exception, this will stop the deregistration. | public ObjectName | preRegister(MBeanServer server, ObjectName name) This method is called by the MBeanServer before registration takes
place. |
postDeregister | public void postDeregister()(Code) | | This method is called by the MBeanServer after deregistration takes
place.
|
postRegister | public void postRegister(Boolean registrationDone)(Code) | | This method is called by the MBeanServer after registration takes
place or when registration fails.
Parameters: registrationDone - the MBeanServer passes true when theMBean was registered, false otherwise. |
preDeregister | public void preDeregister() throws Exception(Code) | | This method is called by the MBeanServer before deregistration takes
place.
The MBean can throw an exception, this will stop the deregistration.
The exception is forwarded to the invoker wrapped in
an MBeanRegistrationException.
|
preRegister | public ObjectName preRegister(MBeanServer server, ObjectName name) throws Exception(Code) | | This method is called by the MBeanServer before registration takes
place. The MBean is passed a reference of the MBeanServer it is
about to be registered with. The MBean must return the ObjectName it
will be registered with. The MBeanServer can pass a suggested object
depending upon how the MBean is registered.
The MBean can stop the registration by throwing an exception.The
exception is forwarded to the invoker wrapped in an
MBeanRegistrationException.
Parameters: MBeanServer - the MBeanServer the MBean is about to beregistered with. Parameters: ObjectName - the suggested ObjectName supplied by theMBeanServer. the actual ObjectName to register this MBean with. exception: Exception - for any error, the MBean is not registered. |
|
|