|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.util.codingsupport.PropertiesHelper
public class PropertiesHelper
A helper class which handles the loading and storing of Properties to/from files including Spring path resolving.
The files can be indicated absolutely or via classpath, i.e. either by "file:C:/folder/..." or by "classpath:folder/...".
| Constructor Summary | |
|---|---|
PropertiesHelper()
|
|
| Method Summary | |
|---|---|
Properties |
loadProperties(String inputFileName)
Resolves the given file name to an absolute file name and then loads the properties from this file to a Properties Object. |
static Properties |
loadPropertiesFromResources(Resource[] resources)
Loads properties from given resources. |
void |
storeProperties(Properties props,
String outputFileName)
Resolves the given file name to an absolute file name and then stores the properties from the Properties Object to this file. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PropertiesHelper()
| Method Detail |
|---|
public static Properties loadPropertiesFromResources(Resource[] resources)
resources - the properties files
public Properties loadProperties(String inputFileName)
inputFileName - The file(s) which will be loaded
public void storeProperties(Properties props,
String outputFileName)
props - The Properties ObjectoutputFileName - The file where the data is stored
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||