Package org.bgerp.app.cfg
Class Preferences
- Direct Known Subclasses:
- Setup
ConcurrentHashMap based implementation of ConfigMap.- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> 
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionentrySet()protected voidloadBundle(String bundleName, Map<String, String> data, boolean validate) Loads configuration file to map.static ConfigMapprocessIncludes(ConfigDAO configDao, String config, boolean validate) Inserts includes placed withvoidvoidMethods inherited from class org.bgerp.app.cfg.ConfigMapclearConfigs, get, getBigDecimal, getBoolean, getBoolean, getConfig, getConfig, getDataString, getInt, getInt, getLong, getLong, getSok, getSok, getSokBoolean, getSokBoolean, getSokLong, getSokLong, removeConfig, sub, subIndexed, subKeyed, subSok, subSokIndexed, validateConfigMethods inherited from class java.util.AbstractMapclear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, size, toString, valuesMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Field Details- 
data
 
- 
- 
Constructor Details- 
Preferencespublic Preferences()
- 
Preferences
 
- 
- 
Method Details- 
get
- 
entrySet
- 
put
- 
putAll
- 
getDataMap
- 
removeSub
- 
loadBundleLoads configuration file to map.- Parameters:
- bundleName- file name without '.properties' extension.
- data- target map.
- validate- check used in values variables.
 
- 
processIncludespublic 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
 
 
-