de.phleisch.app.itsucks.configuration.impl
Class PropertyFileConfigurationImpl

java.lang.Object
  extended by de.phleisch.app.itsucks.configuration.impl.PropertyFileConfigurationImpl
All Implemented Interfaces:
ApplicationConfiguration

public class PropertyFileConfigurationImpl
extends java.lang.Object
implements ApplicationConfiguration


Field Summary
protected  java.lang.String mComment
           
protected  java.util.Properties mConfiguration
           
protected  java.lang.String mDefaultConfigurationPath
           
protected  java.lang.String mSaveConfigurationPath
           
 
Constructor Summary
PropertyFileConfigurationImpl()
           
 
Method Summary
protected  java.io.InputStream findConfiguration()
           
protected  java.io.InputStream findDefaultConfiguration()
           
 java.lang.String getComment()
           
 java.lang.String getDefaultConfigurationPath()
           
 java.lang.String getSaveConfigurationPath()
           
 java.lang.String getValue(java.lang.String pName)
           
 java.lang.String getValue(java.lang.String pName, java.lang.String pDefaultValue)
           
protected  void load()
           
 void save()
           
 void setComment(java.lang.String pComment)
           
 void setDefaultConfigurationPath(java.lang.String pDefaultConfigurationPath)
           
 void setSaveConfigurationPath(java.lang.String pSaveConfigurationPath)
           
 void setValue(java.lang.String pName, java.lang.String pValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mConfiguration

protected java.util.Properties mConfiguration

mSaveConfigurationPath

protected java.lang.String mSaveConfigurationPath

mDefaultConfigurationPath

protected java.lang.String mDefaultConfigurationPath

mComment

protected java.lang.String mComment
Constructor Detail

PropertyFileConfigurationImpl

public PropertyFileConfigurationImpl()
Method Detail

getValue

public java.lang.String getValue(java.lang.String pName)
Specified by:
getValue in interface ApplicationConfiguration

getValue

public java.lang.String getValue(java.lang.String pName,
                                 java.lang.String pDefaultValue)
Specified by:
getValue in interface ApplicationConfiguration

setValue

public void setValue(java.lang.String pName,
                     java.lang.String pValue)
Specified by:
setValue in interface ApplicationConfiguration

load

protected void load()

save

public void save()
Specified by:
save in interface ApplicationConfiguration

findDefaultConfiguration

protected java.io.InputStream findDefaultConfiguration()
                                                throws java.io.IOException,
                                                       java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

findConfiguration

protected java.io.InputStream findConfiguration()
                                         throws java.io.IOException,
                                                java.io.FileNotFoundException
Throws:
java.io.IOException
java.io.FileNotFoundException

getSaveConfigurationPath

public java.lang.String getSaveConfigurationPath()

setSaveConfigurationPath

public void setSaveConfigurationPath(java.lang.String pSaveConfigurationPath)

getDefaultConfigurationPath

public java.lang.String getDefaultConfigurationPath()

setDefaultConfigurationPath

public void setDefaultConfigurationPath(java.lang.String pDefaultConfigurationPath)

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String pComment)


Copyright © 2010. All Rights Reserved.