Class MapFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<Map<Object,Object>>
 
org.springframework.beans.factory.config.MapFactoryBean
- All Implemented Interfaces:
- Aware, BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<Map<Object,- Object>>, InitializingBean 
Simple factory for shared Map instances. Allows for central setup
of Maps via the "map" element in XML bean definitions.
- Since:
- 09.12.2003
- Author:
- Juergen Hoeller
- See Also:
- 
Field SummaryFields inherited from class AbstractFactoryBeanloggerFields inherited from interface FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionTemplate method that subclasses must override to construct the object returned by this factory.This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.voidsetSourceMap(Map<?, ?> sourceMap) Set the source Map, typically populated via XML "map" elements.voidsetTargetMapClass(@Nullable Class<? extends Map> targetMapClass) Set the class to use for the target Map.Methods inherited from class AbstractFactoryBeanafterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
- 
Constructor Details- 
MapFactoryBeanpublic MapFactoryBean()
 
- 
- 
Method Details- 
setSourceMapSet the source Map, typically populated via XML "map" elements.
- 
setTargetMapClass
- 
getObjectTypeDescription copied from class:AbstractFactoryBeanThis abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.- Specified by:
- getObjectTypein interface- FactoryBean<Map<Object,- Object>> 
- Specified by:
- getObjectTypein class- AbstractFactoryBean<Map<Object,- Object>> 
- Returns:
- the type of object that this FactoryBean creates,
or nullif not known at the time of the call
- See Also:
 
- 
createInstanceDescription copied from class:AbstractFactoryBeanTemplate method that subclasses must override to construct the object returned by this factory.Invoked on initialization of this FactoryBean in case of a singleton; else, on each AbstractFactoryBean.getObject()call.- Specified by:
- createInstancein class- AbstractFactoryBean<Map<Object,- Object>> 
- Returns:
- the object returned by this factory
- See Also:
 
 
-