| java.lang.Object org.jboss.mx.persistence.DelegatingPersistenceManager
DelegatingPersistenceManager | public class DelegatingPersistenceManager implements PersistenceManager(Code) | | DelegatingPersistenceManager.
An XMBean Persistence Manager that delegates to an external
MBean-controlled implementation the actual persistence of
MBean attributes.
author: Dimitris Andreadis version: $Revision: 57200 $ |
Method Summary | |
protected void | init(ModelMBeanInvoker invoker, MBeanInfo metadata) Lazy initialization
Gets the external persistor to use and decides on the
persistName to use for this MBean load()/store() calls. | protected boolean | isLoading() | public void | load(ModelMBeanInvoker invoker, MBeanInfo metadata) Called initialy when the XMBean is constructed in order
to load and set the attributes of the MBean,
if their persistent image exists. | protected void | setIsLoading(boolean newIsLoading) | public void | store(MBeanInfo metadata) store() is triggered by the PersistenceInterceptor based
on the persistence policy. |
DelegatingPersistenceManager | public DelegatingPersistenceManager()(Code) | | |
isLoading | protected boolean isLoading()(Code) | | Check if we are loading state
|
load | public void load(ModelMBeanInvoker invoker, MBeanInfo metadata) throws MBeanException(Code) | | Called initialy when the XMBean is constructed in order
to load and set the attributes of the MBean,
if their persistent image exists.
|
setIsLoading | protected void setIsLoading(boolean newIsLoading)(Code) | | Set the loading status
Parameters: newIsLoading - |
store | public void store(MBeanInfo metadata) throws MBeanException(Code) | | store() is triggered by the PersistenceInterceptor based
on the persistence policy.
In the simple case, it will be called for every attribute set.
store() will save *all* attributes that:
(a) are writable (so we can re-load them later on)
(b) their value exists in the ATTRIBUTE_VALUE descriptor
(c) are not marked as PM_NEVER
|
|
|