Package ru.bgcrm.util
Class Preferences
- All Implemented Interfaces:
Serializable,Map<String,String>
- Direct Known Subclasses:
Setup
Набор параметров, хранящийся в ConcurrentHashMap
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ru.bgcrm.util.ParameterMap
ParameterMap.DefaultParameterMapNested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K, V> -
Field Summary
FieldsFields inherited from class ru.bgcrm.util.ParameterMap
configMap, mapPrint -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentrySet()getHashValuesWithPrefix(String prefix) getVarsFromData(String data, String delim) static StringinsertVariablesValues(String line, Map<String, String> data) protected voidloadBundle(String bundleName, Map<String, String> data) Загрузка файла конфигурации в Map, имя файла определено в поле.invalid reference
#bundleNameprotected voidparseObjects(String prefix) Функция для разбора конфигураций вида: filetype.1.name=...parseObjectsNoOrder(String prefix) voidvoidMethods inherited from class ru.bgcrm.util.ParameterMap
fingerprint, get, getBigDecimal, getBoolean, getConfig, getConfig, getDataString, getDataString, getDataString, getDouble, getFloat, getInt, getLong, inherit, sub, subIndexed, subKeyed, toReferenceMethods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, 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
-
Field Details
-
data
-
-
Constructor Details
-
Preferences
public Preferences() -
Preferences
-
Preferences
-
-
Method Details
-
get
- Specified by:
getin classParameterMap
-
entrySet
-
set
-
getDataMap
-
removeSub
-
loadBundle
Загрузка файла конфигурации в Map, имя файла определено в поле.invalid reference
#bundleName -
loadData
-
insertVariablesValues
-
getVarsFromData
-
getHashValuesWithPrefix
-
parseObjects
Функция для разбора конфигураций вида: filetype.1.name=... filetype.1.value=... filetype.2.name=... filetype.2.value.. разбирает в список Map с ключами name, value, код передается под ключем id.- Parameters:
prefix-setup-- Returns:
-
parseObjectsNoOrder
- Overrides:
parseObjectsNoOrderin classParameterMap
-