|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.weblab_project.core.properties.PropertiesLoader
public final class PropertiesLoader
Useful class to be used for retrieving configuration files, and their properties.
Method Summary | |
---|---|
static java.util.Map<java.lang.String,java.lang.String> |
loadProperties(java.lang.String filename)
Same as loadProperties(filename, PropertiesLoader.class); |
static java.util.Map<java.lang.String,java.lang.String> |
loadProperties(java.lang.String filename,
java.lang.Class<?> clazz)
Loads properties into a map from a properties file defined by filename every properties found. |
static java.util.Map<java.lang.String,java.lang.String> |
loadProperties(java.lang.String filename,
java.util.Set<java.lang.String> propertiesKeys)
Same as loadProperties(filename, propertiesKeys, PropertiesLoader.class); |
static java.util.Map<java.lang.String,java.lang.String> |
loadProperties(java.lang.String filename,
java.util.Set<java.lang.String> propertiesKeys,
java.lang.Class<?> clazz)
Loads properties into a map from a properties file defined by filename and a set of property names. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.lang.String filename, java.util.Set<java.lang.String> propertiesKeys, java.lang.Class<?> clazz)
filename
- The name of the properties file to load.propertiesKeys
- The string id of the properties to load.clazz
- The class to be used to get the class loader.
properties
file.public static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.lang.String filename, java.lang.Class<?> clazz)
filename
- The name of the properties file to load.clazz
- The class to be used to get the class loader.
public static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.lang.String filename, java.util.Set<java.lang.String> propertiesKeys)
loadProperties(filename, propertiesKeys, PropertiesLoader.class);
filename
- The name of the properties file to load.propertiesKeys
- The string id of the properties to load.
loadProperties(String, Set, Class)
public static java.util.Map<java.lang.String,java.lang.String> loadProperties(java.lang.String filename)
loadProperties(filename, PropertiesLoader.class);
filename
- The name of the properties file to load.
loadProperties(String, Set, Class)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |