Package org.bgerp.app.cfg
Class Preferences
- Direct Known Subclasses:
Setup
ConcurrentHashMap
based implementation of ConfigMap
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,
V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionentrySet()
getHashValuesWithPrefix
(String prefix) protected void
loadBundle
(String bundleName, Map<String, String> data, boolean validate) Loads configuration file to map.parseObjects
(String prefix) Deprecated.static ConfigMap
processIncludes
(ConfigDAO configDao, String config, boolean validate) Inserts includes placed withvoid
void
Methods inherited from class org.bgerp.app.cfg.ConfigMap
clearConfigs, get, getBigDecimal, getBoolean, getBoolean, getConfig, getConfig, getDataString, getInt, getInt, getLong, getLong, getSok, getSok, getSokBoolean, getSokBoolean, getSokLong, getSokLong, removeConfig, sub, subIndexed, subKeyed, subSok, subSokIndexed, validateConfig
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, size, toString, values
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Field Details
-
data
-
-
Constructor Details
-
Preferences
public Preferences() -
Preferences
-
-
Method Details
-
get
-
entrySet
-
put
-
putAll
-
getDataMap
-
removeSub
-
loadBundle
Loads configuration file to map.- Parameters:
bundleName
- file name without '.properties' extension.data
- target map.validate
- check used in values variables.
-
getHashValuesWithPrefix
-
processIncludes
public static ConfigMap processIncludes(ConfigDAO configDao, String config, boolean validate) throws BGMessageException, SQLException Inserts includes placed withinclude.ID=1
expressions.- Parameters:
configDao
- DAO for getting includes.config
- key-value lines of main configuration.validate
- check existence of includes configurations, variables.- Throws:
BGMessageException
SQLException
-
parseObjects
Deprecated.- Returns:
-