@Lazy(value=false) @Component(value="_Dict_Cache_") public class DictCache extends Object implements org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
DictCache() |
| Modifier and Type | Method and Description |
|---|---|
LinkedHashMap<String,String> |
get(String key) |
String |
getDisplay(String key,
String value) |
HashMap<String,LinkedHashMap<String,String>> |
getMapper() |
String |
getValue(String key,
String display) |
void |
init() |
static DictCache |
instance() |
void |
reload() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public static final String BEAN_NAME
@PostConstruct public void init()
public void reload()
public LinkedHashMap<String,String> get(String key)
public HashMap<String,LinkedHashMap<String,String>> getMapper()
public static DictCache instance()
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2020. All rights reserved.