|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.richclient.settings.xml.FileSystemXmlSettingsReaderWriter
public class FileSystemXmlSettingsReaderWriter
XmlSettingsReaderWriter
implementation that reads and writes
the xml from and to the file system.
Constructor Summary | |
---|---|
FileSystemXmlSettingsReaderWriter(String location)
Creates a new instance. |
Method Summary | |
---|---|
String |
getLocation()
Returns the current location. |
RootXmlSettings |
read(String key)
Reads the settings with the given key from the backing store. |
void |
setLocation(String location)
Sets the location. |
void |
write(RootXmlSettings settings)
Writes the given settings to the backing store. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemXmlSettingsReaderWriter(String location)
location
- the location where the xml files will be locatedMethod Detail |
---|
public void write(RootXmlSettings settings) throws SettingsException
XmlSettingsReaderWriter
write
in interface XmlSettingsReaderWriter
settings
- the settings
SettingsException
- wraps any exception thrown by the backing storepublic RootXmlSettings read(String key) throws SettingsException
XmlSettingsReaderWriter
read
in interface XmlSettingsReaderWriter
key
- the key
SettingsException
- wraps any exception thrown by the backing storepublic String getLocation()
public void setLocation(String location)
location
- the new location
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |