Package org.silverpeas.core.test.util
Class SilverProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- org.silverpeas.core.test.util.SilverProperties
-
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<Object,Object>
public class SilverProperties extends Properties
An utility class to load the properties- Author:
- Yohann Chastagnier
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
int
hashCode()
static SilverProperties
load(Class<?> fromClass, String... propertyFilePaths)
Loads properties of given property file path from a class.
Property file has to exist into resources of the project.SilverProperties
load(String... propertyFilePaths)
Loads properties of given property file path from a class and add them to the currents.
Property file has to exist into resources of the project.-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, forEach, get, getOrDefault, getProperty, getProperty, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
-
-
-
Method Detail
-
load
public static SilverProperties load(Class<?> fromClass, String... propertyFilePaths)
Loads properties of given property file path from a class.
Property file has to exist into resources of the project.- Parameters:
fromClass
- the class from which the properties are requested.propertyFilePaths
- the paths of files that contains the aimed properties.- Returns:
- an instance of
SilverProperties
that contains requested properties.
-
load
public SilverProperties load(String... propertyFilePaths)
Loads properties of given property file path from a class and add them to the currents.
Property file has to exist into resources of the project.- Parameters:
propertyFilePaths
- the paths of files that contains the aimed properties.- Returns:
- an instance of
SilverProperties
that contains requested properties.
-
equals
public boolean equals(Object o)
-
-