Package io.ultreia.java4all.config
Class EnvProperties
- java.lang.Object
-
- java.util.Dictionary<K,V>
-
- java.util.Hashtable<Object,Object>
-
- java.util.Properties
-
- io.ultreia.java4all.config.EnvProperties
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<Object,Object>
public class EnvProperties extends Properties
Created on 19/12/2021.- Since:
- Author:
- Tony Chemit - dev@tchemit.fr
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class java.util.Properties
defaults
-
-
Constructor Summary
Constructors Constructor Description EnvProperties()EnvProperties(Properties defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectget(Object key)Environnement variables can't contains dot (bash, csh, ...).StringgetProperty(String key)override to use get(key) and not super.get(key) as in initial implementation :(-
Methods inherited from class java.util.Properties
clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, getOrDefault, getProperty, hashCode, 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
-
-
-
-
Constructor Detail
-
EnvProperties
public EnvProperties()
-
EnvProperties
public EnvProperties(Properties defaults)
-
-
Method Detail
-
get
public Object get(Object key)
Environnement variables can't contains dot (bash, csh, ...). Dots are replaced by underscore (_) to find property if property is not find with dot
-
getProperty
public String getProperty(String key)
override to use get(key) and not super.get(key) as in initial implementation :(- Overrides:
getPropertyin classProperties
-
-