public class

ManagedMap

extends LinkedHashMap<K, V>
implements BeanMetadataElement Mergeable
java.lang.Object
   ↳ java.util.AbstractMap<K, V>
     ↳ java.util.HashMap<K, V>
       ↳ java.util.LinkedHashMap<K, V>
         ↳ org.springframework.beans.factory.support.ManagedMap<K, V>

Class Overview

Tag collection class used to hold managed Map values, which may include runtime bean references (to be resolved into bean objects).

Summary

Public Constructors
ManagedMap()
ManagedMap(int initialCapacity)
Public Methods
String getKeyTypeName()
Return the default key type name (class name) to be used for this map.
Object getSource()
Return the configuration source Object for this metadata element (may be null).
String getValueTypeName()
Return the default value type name (class name) to be used for this map.
boolean isMergeEnabled()
Is merging enabled for this particular instance?
Object merge(Object parent)
Merge the current value set with that of the supplied object.
void setKeyTypeName(String keyTypeName)
Set the default key type name (class name) to be used for this map.
void setMergeEnabled(boolean mergeEnabled)
Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.
void setSource(Object source)
Set the configuration source Object for this metadata element.
void setValueTypeName(String valueTypeName)
Set the default value type name (class name) to be used for this map.
[Expand]
Inherited Methods
From class java.util.LinkedHashMap
From class java.util.HashMap
From class java.util.AbstractMap
From class java.lang.Object
From interface java.util.Map
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.Mergeable

Public Constructors

public ManagedMap ()

Also: SpringBeans

public ManagedMap (int initialCapacity)

Also: SpringBeans

Public Methods

public String getKeyTypeName ()

Also: SpringBeans

Return the default key type name (class name) to be used for this map.

public Object getSource ()

Also: SpringBeans

Return the configuration source Object for this metadata element (may be null).

public String getValueTypeName ()

Also: SpringBeans

Return the default value type name (class name) to be used for this map.

public boolean isMergeEnabled ()

Also: SpringBeans

Is merging enabled for this particular instance?

public Object merge (Object parent)

Also: SpringBeans

Merge the current value set with that of the supplied object.

The supplied object is considered the parent, and values in the callee's value set must override those of the supplied object.

Parameters
parent the object to merge with
Returns
  • the result of the merge operation

public void setKeyTypeName (String keyTypeName)

Also: SpringBeans

Set the default key type name (class name) to be used for this map.

public void setMergeEnabled (boolean mergeEnabled)

Also: SpringBeans

Set whether merging should be enabled for this collection, in case of a 'parent' collection value being present.

public void setSource (Object source)

Also: SpringBeans

Set the configuration source Object for this metadata element.

The exact type of the object will depend on the configuration mechanism used.

public void setValueTypeName (String valueTypeName)

Also: SpringBeans

Set the default value type name (class name) to be used for this map.