Package casa.lepton.conf
Class OppNodeProfiles
java.lang.Object
java.util.AbstractMap<K,V>
java.util.HashMap<String,T>
casa.util.conf.ConfigurationProfiles<OppNodeProperties>
casa.lepton.conf.OppNodeProfiles
- All Implemented Interfaces:
Serializable
,Cloneable
,Map<String,
OppNodeProperties>
A map associating profile names to
OppNodeProperties
objects. The
profiles are loaded from a file which format is described in the
ConfigurationProfiles
class.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,
V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> -
Field Summary
Fields inherited from class casa.util.conf.ConfigurationProfiles
commonProperties
-
Constructor Summary
ConstructorDescriptionOppNodeProfiles
(OppNodeProperties commonProperties, BufferedReader reader) Loads profiles from a file where properties are introduced by their profile name between '[' ']'. -
Method Summary
Modifier and TypeMethodDescriptiongetProfile
(String id) protected OppNodeProperties
makeProperties
(Properties props) Methods inherited from class casa.util.conf.ConfigurationProfiles
displayDefinedProfiles, getProfiles, getProperties
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Constructor Details
-
OppNodeProfiles
public OppNodeProfiles(OppNodeProperties commonProperties, BufferedReader reader) throws IOException Loads profiles from a file where properties are introduced by their profile name between '[' ']'. The properties defined before the first profile name are properties common to all profiles.- Parameters:
commonProperties
- properties common to all profiles. May be null. Those common properties are overwritten by the specific profiles' propertiesreader
- input stream from which the properties are loaded- Throws:
IOException
- if an error occurs while accessing the input stream
-
-
Method Details
-
getProfile
-
makeProperties
- Specified by:
makeProperties
in classcasa.util.conf.ConfigurationProfiles<OppNodeProperties>
-