org.springframework.beans.factory.config

Class MapFactoryBean

    • Constructor Detail

      • MapFactoryBean

        public MapFactoryBean()
    • Method Detail

      • setSourceMap

        public void setSourceMap(java.util.Map<?,?> sourceMap)
        Set the source Map, typically populated via XML "map" elements.
      • setTargetMapClass

        public void setTargetMapClass(@Nullable
                                      java.lang.Class<? extends java.util.Map> targetMapClass)
        Set the class to use for the target Map. Can be populated with a fully qualified class name when defined in a Spring application context.

        Default is a linked HashMap, keeping the registration order.

        See Also:
        LinkedHashMap
      • getObjectType

        public java.lang.Class<java.util.Map> getObjectType()
        Description copied from class: AbstractFactoryBean
        This abstract method declaration mirrors the method in the FactoryBean interface, for a consistent offering of abstract template methods.
        Specified by:
        getObjectType in interface FactoryBean<java.util.Map<java.lang.Object,java.lang.Object>>
        Specified by:
        getObjectType in class AbstractFactoryBean<java.util.Map<java.lang.Object,java.lang.Object>>
        Returns:
        the type of object that this FactoryBean creates, or null if not known at the time of the call
        See Also:
        FactoryBean.getObjectType()