Class Setup
java.lang.Object
java.util.AbstractMap<String,String>
org.bgerp.app.cfg.ConfigMap
org.bgerp.app.cfg.Preferences
org.bgerp.app.cfg.Setup
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields inherited from class Preferences
data -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringDeprecated.static SetupgetSetup()Use this singleton call wisely, because introducing that everywhere makes code hardly testable.Deprecated.static voidresetSetup(ConnectionPool pool) Methods inherited from class Preferences
entrySet, get, getDataMap, loadBundle, processIncludes, put, putAll, removeSubMethods inherited from class 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, validateConfigMethods inherited from class AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, size, toString, valuesMethods inherited from interface Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
Constructor Details
-
Setup
public Setup(boolean initConfigAndPool)
-
-
Method Details
-
getBundleName
-
getSetup
Use this singleton call wisely, because introducing that everywhere makes code hardly testable.- Returns:
-
resetSetup
-
getConnectionPool
-
getDBConnectionFromPool
-
getDBSlaveConnectionFromPool
-
getDataSource
-
getSlaveDataSource
-