org.huihoo.jfox.persistent
Class AbstractPersistenter
java.lang.Object
org.huihoo.jfox.persistent.AbstractPersistenter
- All Implemented Interfaces:
- MxRegistration, Persistenter
- Direct Known Subclasses:
- FilePersistenter
- public abstract class AbstractPersistenter
- extends java.lang.Object
- implements Persistenter, MxRegistration
|
Method Summary |
void |
postDeregister()
Allows the MBean to perform any operations needed after having been
unregistered in the MBean server. |
void |
postRegister(java.lang.Boolean value)
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. |
void |
preRegister(MxServer mbeanserver,
ObjectName objectname)
Allows the MBean to perform any operations it needs before
being registered in the MBean server. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
server
protected MxServer server
AbstractPersistenter
public AbstractPersistenter()
preRegister
public void preRegister(MxServer mbeanserver,
ObjectName objectname)
throws java.lang.Exception
- Description copied from interface:
MxRegistration
- Allows the MBean to perform any operations it needs before
being registered in the MBean server. If the name of the MBean
is not specified, the MBean can provide a name for its
registration. If any exception is raised, the MBean will not be
registered in the MBean server.
- Specified by:
preRegister in interface MxRegistration
- Parameters:
mbeanserver - The MBean server in which the MBean will be registered.objectname - The object name of the MBean. This name is null if
the name parameter to one of the createMBean or
registerMBean methods in the MxServer
interface is null. In that case, this method must return a
non-null ObjectName for the new MBean.
- Throws:
java.lang.Exception
postRegister
public void postRegister(java.lang.Boolean value)
- Description copied from interface:
MxRegistration
- Allows the MBean to perform any operations needed after having been
registered in the MBean server or after the registration has failed.
- Specified by:
postRegister in interface MxRegistration
- Parameters:
value - Indicates whether or not the MBean has
been successfully registered in the MBean server. The value
false means that the registration phase has failed.
preDeregister
public void preDeregister()
throws java.lang.Exception
- Description copied from interface:
MxRegistration
- Allows the MBean to perform any operations it needs before
being unregistered by the MBean server.
- Specified by:
preDeregister in interface MxRegistration
- Throws:
java.lang.Exception
postDeregister
public void postDeregister()
- Description copied from interface:
MxRegistration
- Allows the MBean to perform any operations needed after having been
unregistered in the MBean server.
- Specified by:
postDeregister in interface MxRegistration