public class PropertyContainer extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
comment |
protected File |
configfile |
protected Properties |
properties |
protected String |
separator |
Constructor and Description |
---|
PropertyContainer() |
PropertyContainer(File file)
uses the specified file as config file
|
PropertyContainer(File dir,
String filename)
Create a new PropertyContainer in the specified directory.
|
PropertyContainer(InputStream stream) |
PropertyContainer(Properties parent) |
protected final Properties properties
protected String separator
protected final File configfile
protected String comment
public PropertyContainer()
public PropertyContainer(Properties parent)
public PropertyContainer(File file) throws IOException
file
- IOException
public PropertyContainer(InputStream stream) throws IOException
IOException
public PropertyContainer(File dir, String filename) throws IOException
dir
- filename
- IOException
public String getSeparator()
public void setSeparator(String separator)
public void save() throws IOException
IOException
public void removeProperty(String key)
public String setString(String key, String value)
setProperty(java.lang.String, java.lang.String)
public void configureObject(Object myObject) throws IllegalArgumentException, IllegalAccessException
myObject
- object containing annotations at fieldsIllegalArgumentException
IllegalAccessException
Copyright © 2013. All Rights Reserved.