|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.jmx.compliance.registration.support.RegistrationAware
Constructor Summary | |
RegistrationAware()
|
Method Summary | |
javax.management.ObjectName |
getRegisteredObjectName()
|
javax.management.MBeanServer |
getRegisteredServer()
|
String |
getSomething()
|
boolean |
isPostDeRegisterCalled()
|
boolean |
isPostRegisterCalled()
|
boolean |
isPostRegisterRegistrationDone()
|
boolean |
isPreDeRegisterCalled()
|
boolean |
isPreRegisterCalled()
|
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. |
javax.management.ObjectName |
preRegister(javax.management.MBeanServer server,
javax.management.ObjectName name)
This method is called by the MBeanServer before registration takes place. |
void |
setAlternateObjectName(javax.management.ObjectName alternateObjectName)
|
void |
setExceptionOnPreDeRegister(Exception exceptionOnPreDeRegister)
|
void |
setExceptionOnPreRegister(Exception exceptionOnPreRegister)
|
void |
setSomething(String something)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RegistrationAware()
Method Detail |
public void setSomething(String something)
setSomething
in interface RegistrationAwareMBean
public String getSomething()
getSomething
in interface RegistrationAwareMBean
public javax.management.ObjectName preRegister(javax.management.MBeanServer server, javax.management.ObjectName name) throws Exception
javax.management.MBeanRegistration
The MBean can stop the registration by throwing an exception.The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preRegister
in interface javax.management.MBeanRegistration
Exception
- for any error, the MBean is not registered.public void postRegister(Boolean registrationDone)
javax.management.MBeanRegistration
postRegister
in interface javax.management.MBeanRegistration
registrationDone
- the MBeanServer passes true when the
MBean was registered, false otherwise.public void preDeregister() throws Exception
javax.management.MBeanRegistration
The MBean can throw an exception, this will stop the deregistration. The exception is forwarded to the invoker wrapped in an MBeanRegistrationException.
preDeregister
in interface javax.management.MBeanRegistration
Exception
public void postDeregister()
javax.management.MBeanRegistration
postDeregister
in interface javax.management.MBeanRegistration
public void setExceptionOnPreRegister(Exception exceptionOnPreRegister)
public void setExceptionOnPreDeRegister(Exception exceptionOnPreDeRegister)
public void setAlternateObjectName(javax.management.ObjectName alternateObjectName)
public boolean isPreRegisterCalled()
public boolean isPreDeRegisterCalled()
public boolean isPostRegisterCalled()
public boolean isPostDeRegisterCalled()
public boolean isPostRegisterRegistrationDone()
public javax.management.MBeanServer getRegisteredServer()
public javax.management.ObjectName getRegisteredObjectName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |