Package org.bgerp.app.cfg
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 java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
Fields inherited from class org.bgerp.app.cfg.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 org.bgerp.app.cfg.Preferences
entrySet, get, getDataMap, loadBundle, processIncludes, put, putAll, removeSubMethods 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, validateConfigMethods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, remove, size, toString, valuesMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.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
Deprecated. -
getSlaveDataSource
Deprecated.
-