public class

ManagedList

extends ArrayList<E>
implements BeanMetadataElement Mergeable
java.lang.Object
   ↳ java.util.AbstractCollection<E>
     ↳ java.util.AbstractList<E>
       ↳ java.util.ArrayList<E>
         ↳ org.springframework.beans.factory.support.ManagedList<E>
Known Direct Subclasses

Class Overview

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

Summary

[Expand]
Inherited Fields
From class java.util.AbstractList
Public Constructors
ManagedList()
ManagedList(int initialCapacity)
Public Methods
String getElementTypeName()
Return the default element type name (class name) to be used for this list.
Object getSource()
Return the configuration source Object for this metadata element (may be null).
boolean isMergeEnabled()
Is merging enabled for this particular instance?
List<E> merge(Object parent)
Merge the current value set with that of the supplied object.
void setElementTypeName(String elementTypeName)
Set the default element type name (class name) to be used for this list.
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.
[Expand]
Inherited Methods
From class java.util.ArrayList
From class java.util.AbstractList
From class java.util.AbstractCollection
From class java.lang.Object
From interface java.lang.Iterable
From interface java.util.Collection
From interface java.util.List
From interface org.springframework.beans.BeanMetadataElement
From interface org.springframework.beans.Mergeable

Public Constructors

public ManagedList ()

Also: SpringBeans

public ManagedList (int initialCapacity)

Also: SpringBeans

Public Methods

public String getElementTypeName ()

Also: SpringBeans

Return the default element type name (class name) to be used for this list.

public Object getSource ()

Also: SpringBeans

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

public boolean isMergeEnabled ()

Also: SpringBeans

Is merging enabled for this particular instance?

public List<E> 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 setElementTypeName (String elementTypeName)

Also: SpringBeans

Set the default element type name (class name) to be used for this list.

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.