Package overit.geocall.util
Class PropertyGetter
java.lang.Object
java.util.Dictionary<Object,Object>
java.util.Hashtable<Object,Object>
java.util.Properties
overit.geocall.util.SerialGetter
overit.geocall.util.PropertyGetter
The class implements a
Getter through Properties and must be used as
setup file to for refer to the application parametrization- See Also:
-
Field Summary
Fields inherited from class java.util.Properties
defaults -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty basic PropertyGetterPropertyGetter(String resource) Creates an empty PropertyGetter starting from a Java properties file (seeProperties).PropertyGetter(String resource, Class<?> c) Creates an empty PropertyGetter starting from a Java properties file (seeProperties) and oClassobject.PropertyGetter(Map<?, ?> p) Creates a PropertyGetter starting from a map -
Method Summary
Methods inherited from class overit.geocall.util.SerialGetter
containsKey, get, get, getboolean, getBoolean, getDate, getdouble, getDouble, getfloat, getFloat, getint, getInteger, getlong, getLong, getString, keyIterator, put, putAllMethods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, toString, values
-
Constructor Details
-
PropertyGetter
public PropertyGetter()Creates an empty basic PropertyGetter -
PropertyGetter
Creates a PropertyGetter starting from a map- Parameters:
p- The map used to create the PropertyGetter
-
PropertyGetter
Creates an empty PropertyGetter starting from a Java properties file (seeProperties) and oClassobject.- Parameters:
resource- Name of the Properties resourcec- Specifies the caller Class; this is needed to use the correctClassLoaderto retrieve correctly the resource file- Throws:
IOException- In case errors occur when reading the file an IOException will raise
-
PropertyGetter
Creates an empty PropertyGetter starting from a Java properties file (seeProperties). It uses the SystemClassLoader to retrieve the resource- Parameters:
resource- Name of the Properties resource- Throws:
IOException- In case errors occur when reading the file an IOException will raise
-