org.springframework.richclient.settings.xml
Class XmlSettingsFactory

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

public class XmlSettingsFactory
extends Object
implements SettingsFactory

SettingsFactory for creating XmlSettings.

Author:
Peter De Bruycker

Constructor Summary
XmlSettingsFactory()
           
 
Method Summary
 Settings createSettings(String key)
          Create a new Settings instance for the given key.
 String getLocation()
          Returns the location for the xml files.
 XmlSettingsReaderWriter getReaderWriter()
          Returns the XmlSettingsReaderWriter used for persisting the xml to the backing store.
 void setLocation(String location)
          Sets the location of the xml files.
 void setReaderWriter(XmlSettingsReaderWriter readerWriter)
          Sets the XmlSettingsReaderWriter to use.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlSettingsFactory

public XmlSettingsFactory()
Method Detail

getReaderWriter

public XmlSettingsReaderWriter getReaderWriter()
Returns the XmlSettingsReaderWriter used for persisting the xml to the backing store. If no XmlSettingsReaderWriter was set, the default (FileSystemXmlSettingsReaderWriter) will be used.

Returns:
the XmlSettingsReaderWriter

setReaderWriter

public void setReaderWriter(XmlSettingsReaderWriter readerWriter)
Sets the XmlSettingsReaderWriter to use. If set to null, the default (FileSystemXmlSettingsReaderWriter) will be used.

Parameters:
readerWriter - the XmlSettingsReaderWriter

createSettings

public Settings createSettings(String key)
                        throws SettingsException
Description copied from interface: SettingsFactory
Create a new Settings instance for the given key.

Specified by:
createSettings in interface SettingsFactory
Parameters:
key - the key
Returns:
a Settings instance
Throws:
SettingsException

getLocation

public String getLocation()
Returns the location for the xml files.

Returns:
the location

setLocation

public void setLocation(String location)
Sets the location of the xml files.

Parameters:
location - the location


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