public class SpringBeanQNameMap<V> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
AbstractSpringBeanMap.Entry<X,V> |
Modifier and Type | Field and Description |
---|---|
protected ApplicationContext |
context |
protected String |
idsProperty |
protected ConcurrentHashMap<X,List<String>> |
idToBeanName |
protected ConcurrentHashMap<X,V> |
putStore |
protected String |
staticFieldName |
protected Class<?> |
type |
Constructor and Description |
---|
SpringBeanQNameMap() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
clear() |
boolean |
containsKey(Object key) |
boolean |
containsValue(Object arg0) |
Map<X,V> |
createMap() |
Set<Map.Entry<X,V>> |
entrySet() |
V |
get(Object key) |
protected List<String> |
getBeanListForId(X id) |
protected Collection<X> |
getIds(Object bean) |
String |
getIdsProperty() |
String |
getStaticFieldName() |
Class<?> |
getType() |
boolean |
isEmpty() |
Set<X> |
keySet() |
Object |
postProcessBeforeInitialization(Object bean,
String beanName) |
protected void |
processBeans(ApplicationContext beanFactory) |
V |
put(X key,
V value) |
void |
putAll(Map<? extends X,? extends V> m) |
V |
remove(Object key) |
void |
setApplicationContext(ApplicationContext ctx) |
void |
setIdsProperty(String idsProperty) |
void |
setStaticFieldName(String staticFieldName) |
void |
setType(Class<?> type) |
int |
size() |
Collection<V> |
values() |
protected ApplicationContext context
protected Class<?> type
protected String idsProperty
protected String staticFieldName
protected ConcurrentHashMap<X,List<String>> idToBeanName
protected ConcurrentHashMap<X,V> putStore
protected void processBeans(ApplicationContext beanFactory)
public void setApplicationContext(ApplicationContext ctx) throws BeansException
BeansException
public Map<X,V> createMap()
createMap
in interface MapProvider<X,V>
protected Collection<X> getIds(Object bean)
public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException
BeansException
public Class<?> getType()
public void setType(Class<?> type)
public String getIdsProperty()
public void setIdsProperty(String idsProperty)
public String getStaticFieldName()
public void setStaticFieldName(String staticFieldName)
public void clear()
public boolean containsKey(Object key)
public boolean containsValue(Object arg0)
public V get(Object key)
public boolean isEmpty()
public Set<X> keySet()
public V put(X key, V value)
public void putAll(Map<? extends X,? extends V> m)
public V remove(Object key)
public int size()
public Collection<V> values()
Copyright © 2018 JBoss by Red Hat. All rights reserved.