|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.test.jmx.xmbean.XMLFilePersistenceManager
XML File Persistence Manager.
Persists the MBean to the file system using an XML file. The file has to follow this (simple) DTD:
Field Summary | |
protected boolean |
isLoading
A flag set to true to prevent attribute updates from within load triggering stores. |
protected static Logger (src) |
log
|
Constructor Summary | |
XMLFilePersistenceManager()
|
Method Summary | |
protected java.io.File |
getStoreFile(MBeanInfo (src) metadata,
boolean createFile)
Obtain the store location from the ModelMBean Descriptor. |
protected boolean |
isLoading()
|
void |
load(ModelMBeanInvoker (src) mbean,
MBeanInfo (src) metadata)
Loads the attributes from the given file |
protected void |
setIsLoading(boolean newIsLoading)
|
void |
store(MBeanInfo (src) metadata)
What we need to get here is 1) the persist location, and 2) the entire contents of the mbean. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static Logger (src) log
protected boolean isLoading
Constructor Detail |
public XMLFilePersistenceManager()
Method Detail |
public void load(ModelMBeanInvoker (src) mbean, MBeanInfo (src) metadata) throws MBeanException (src)
load
in interface PersistenceManager (src)
mbean
- to store tometadata
- with file location etc.
MBeanException (src)
public void store(MBeanInfo (src) metadata) throws MBeanException (src)
store
in interface PersistenceManager (src)
metadata
-
MBeanException (src)
protected boolean isLoading()
protected void setIsLoading(boolean newIsLoading)
protected java.io.File getStoreFile(MBeanInfo (src) metadata, boolean createFile) throws MBeanException (src)
metadata
- createFile
-
MBeanException (src)
|
||||||||||
PREV CLASS (src) NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |