org.springframework.beans.factory.support
Class ManagedList
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList
org.springframework.beans.factory.support.ManagedList
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable, Collection, List, RandomAccess, BeanMetadataElement, Mergeable
public class ManagedList
- extends ArrayList
- implements Mergeable, BeanMetadataElement
Tag subclass used to hold managed List elements, which may
include runtime bean references.
- Since:
- 27.05.2003
- Author:
- Rod Johnson, Rob Harrop
- See Also:
- Serialized Form
Method Summary |
Object |
getSource()
Return the configuration source Object for this metadata element
(may be null ). |
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 |
setMergeEnabled(boolean mergeEnabled)
|
void |
setSource(Object source)
Set the configuration source Object for this metadata element. |
Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, remove, removeRange, set, size, toArray, toArray, trimToSize |
ManagedList
public ManagedList()
ManagedList
public ManagedList(int initialCapacity)
setMergeEnabled
public void setMergeEnabled(boolean mergeEnabled)
isMergeEnabled
public boolean isMergeEnabled()
- Description copied from interface:
Mergeable
- Is merging enabled for this particular instance?
- Specified by:
isMergeEnabled
in interface Mergeable
setSource
public void setSource(Object source)
- Set the configuration source
Object
for this metadata element.
The exact type of the object will depend on the configuration mechanism used.
getSource
public Object getSource()
- Description copied from interface:
BeanMetadataElement
- Return the configuration source
Object
for this metadata element
(may be null
).
- Specified by:
getSource
in interface BeanMetadataElement
merge
public Object merge(Object parent)
- Description copied from interface:
Mergeable
- 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.
- Specified by:
merge
in interface Mergeable
- Parameters:
parent
- the object to merge with
- Returns:
- the result of the merge operation
Copyright © 2002-2006 The Spring Framework.