Package org.cxbox.model.core.service
Class DictionaryCacheImpl
java.lang.Object
org.cxbox.model.core.service.DictionaryCacheImpl
- All Implemented Interfaces:
DictionaryCache
@DependsOn("deploymentTransactionSupport")
@Service
public class DictionaryCacheImpl
extends Object
implements DictionaryCache
Initiator of the cache of simple dictionaries.
The idea is simple, when you start the application and raise the context of the spring, we have a cache of simple directories,
access to this cache and not to the base throughout the entire operation of the application.
Key - the name of the dictionary (DICTIONARY_TYPE), value - the dictionary of a simple structure String - String
General structure of a simple dictionary: KEY (LIC) - independent language key VALUE- value
-
Field Summary
Fields inherited from interface org.cxbox.api.data.dictionary.DictionaryCache
instance -
Constructor Summary
ConstructorsConstructorDescriptionDictionaryCacheImpl(LocaleService localeService, Optional<List<DictionaryCacheLoader>> loaders) -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsKey(String key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.booleancontainsKey(LOV key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.booleancontainsValue(String value, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.get(IDictionaryType type, String key) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.getAll(IDictionaryType dictionaryType) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.getDescription(String key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.lookupName(String val, String type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.lookupName(String val, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.lookupValue(LOV key, String type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.lookupValue(LOV key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.lookupValueNullable(LOV key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated.voidreload()types()
-
Constructor Details
-
DictionaryCacheImpl
public DictionaryCacheImpl(LocaleService localeService, Optional<List<DictionaryCacheLoader>> loaders)
-
-
Method Details
-
reload
public void reload()- Specified by:
reloadin interfaceDictionaryCache
-
get
@Deprecated(since="4.0.0-M12", forRemoval=true) public SimpleDictionary get(IDictionaryType type, String key) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
getin interfaceDictionaryCache
-
get
- Specified by:
getin interfaceDictionaryCache
-
getAll
@Deprecated(since="4.0.0-M12", forRemoval=true) public Collection<SimpleDictionary> getAll(IDictionaryType dictionaryType) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
getAllin interfaceDictionaryCache
-
getAll
- Specified by:
getAllin interfaceDictionaryCache
-
lookupValue
@Deprecated(since="4.0.0-M12", forRemoval=true) public String lookupValue(LOV key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
lookupValuein interfaceDictionaryCache
-
lookupValue
Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
lookupValuein interfaceDictionaryCache
-
lookupValueNullable
@Deprecated(since="4.0.0-M12", forRemoval=true) public String lookupValueNullable(LOV key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
lookupValueNullablein interfaceDictionaryCache
-
lookupName
@Deprecated(since="4.0.0-M12", forRemoval=true) public LOV lookupName(String val, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
lookupNamein interfaceDictionaryCache
-
lookupName
Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
lookupNamein interfaceDictionaryCache
-
containsKey
@Deprecated(since="4.0.0-M12", forRemoval=true) public boolean containsKey(String key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
containsKeyin interfaceDictionaryCache
-
containsKey
@Deprecated(since="4.0.0-M12", forRemoval=true) public boolean containsKey(LOV key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
containsKeyin interfaceDictionaryCache
-
containsValue
@Deprecated(since="4.0.0-M12", forRemoval=true) public boolean containsValue(String value, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
containsValuein interfaceDictionaryCache
-
getDescription
@Deprecated(since="4.0.0-M12", forRemoval=true) public String getDescription(String key, IDictionaryType type) Deprecated, for removal: This API element is subject to removal in a future version.LOV is deprecated. Instead, use type safeDictionary- Specified by:
getDescriptionin interfaceDictionaryCache
-
types
- Specified by:
typesin interfaceDictionaryCache
-