org.springframework.richclient.settings.xml
Class FileSystemXmlSettingsReaderWriter

Show UML class diagram
java.lang.Object
  extended by org.springframework.richclient.settings.xml.FileSystemXmlSettingsReaderWriter
All Implemented Interfaces:
XmlSettingsReaderWriter

public class FileSystemXmlSettingsReaderWriter
extends Object
implements XmlSettingsReaderWriter

XmlSettingsReaderWriter implementation that reads and writes the xml from and to the file system.

Author:
Peter De Bruycker

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

FileSystemXmlSettingsReaderWriter

public FileSystemXmlSettingsReaderWriter(String location)
Creates a new instance.

Parameters:
location - the location where the xml files will be located
Method Detail

write

public void write(RootXmlSettings settings)
           throws SettingsException
Description copied from interface: XmlSettingsReaderWriter
Writes the given settings to the backing store.

Specified by:
write in interface XmlSettingsReaderWriter
Parameters:
settings - the settings
Throws:
SettingsException - wraps any exception thrown by the backing store

read

public RootXmlSettings read(String key)
                     throws SettingsException
Description copied from interface: XmlSettingsReaderWriter
Reads the settings with the given key from the backing store.

Specified by:
read in interface XmlSettingsReaderWriter
Parameters:
key - the key
Returns:
the settings
Throws:
SettingsException - wraps any exception thrown by the backing store

getLocation

public String getLocation()
Returns the current location.

Returns:
the location

setLocation

public void setLocation(String location)
Sets the location.

Parameters:
location - the new location


Copyright © 2004-2009 The Spring Framework. All Rights Reserved.