org.apache.cxf.configuration.spring
Class SpringBeanMap<V>
java.lang.Object
org.apache.cxf.configuration.spring.SpringBeanMap<V>
- All Implemented Interfaces:
- java.io.Serializable, MapProvider<java.lang.String,V>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
public class SpringBeanMap<V>
- extends java.lang.Object
- See Also:
- Serialized Form
|
Nested Class Summary |
static class |
org.apache.cxf.configuration.spring.AbstractSpringBeanMap.Entry<X,V>
|
|
Field Summary |
protected org.springframework.context.ApplicationContext |
context
|
protected java.lang.String |
idsProperty
|
protected java.util.Map<X,java.util.List<java.lang.String>> |
idToBeanName
|
protected java.util.Map<X,V> |
putStore
|
protected java.lang.String |
staticFieldName
|
protected java.lang.Class<?> |
type
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
protected org.springframework.context.ApplicationContext context
type
protected java.lang.Class<?> type
idsProperty
protected java.lang.String idsProperty
staticFieldName
protected java.lang.String staticFieldName
idToBeanName
protected java.util.Map<X,java.util.List<java.lang.String>> idToBeanName
putStore
protected java.util.Map<X,V> putStore
SpringBeanMap
public SpringBeanMap()
processBeans
protected void processBeans(org.springframework.context.ApplicationContext beanFactory)
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext ctx)
throws org.springframework.beans.BeansException
- Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
afterPropertiesSet
public void afterPropertiesSet()
throws java.lang.Exception
- Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
- Throws:
java.lang.Exception
createMap
public java.util.Map<X,V> createMap()
- Specified by:
createMap in interface MapProvider<X,V>
getBeanListForId
protected java.util.List<java.lang.String> getBeanListForId(X id)
getIds
protected java.util.Collection<java.lang.String> getIds(java.lang.Object bean)
postProcessBeforeInitialization
public java.lang.Object postProcessBeforeInitialization(java.lang.Object bean,
java.lang.String beanName)
throws org.springframework.beans.BeansException
- Throws:
org.springframework.beans.BeansException
getType
public java.lang.Class<?> getType()
setType
public void setType(java.lang.Class<?> type)
getIdsProperty
public java.lang.String getIdsProperty()
setIdsProperty
public void setIdsProperty(java.lang.String idsProperty)
getStaticFieldName
public java.lang.String getStaticFieldName()
setStaticFieldName
public void setStaticFieldName(java.lang.String staticFieldName)
clear
public void clear()
containsKey
public boolean containsKey(java.lang.Object key)
containsValue
public boolean containsValue(java.lang.Object arg0)
entrySet
public java.util.Set<java.util.Map.Entry<X,V>> entrySet()
get
public V get(java.lang.Object key)
isEmpty
public boolean isEmpty()
keySet
public java.util.Set<X> keySet()
put
public V put(X key,
V value)
putAll
public void putAll(java.util.Map<? extends X,? extends V> m)
remove
public V remove(java.lang.Object key)
size
public int size()
values
public java.util.Collection<V> values()
Apache CXF