Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » config » [javadoc | source]
org.springframework.beans.factory.config
public class: ConstructorArgumentValues [javadoc | source]
java.lang.Object
   org.springframework.beans.factory.config.ConstructorArgumentValues
Holder for constructor argument values, typically as part of a bean definition.

Supports values for a specific index in the constructor argument list as well as for generic argument matches by type.

Nested Class Summary:
public static class  ConstructorArgumentValues.ValueHolder  Holder for a constructor argument value, with an optional type attribute indicating the target type of the actual constructor argument. 
Constructor:
 public ConstructorArgumentValues() 
 public ConstructorArgumentValues(ConstructorArgumentValues original) 
    Deep copy constructor.
    Parameters:
    original - the ConstructorArgumentValues to copy
Method from org.springframework.beans.factory.config.ConstructorArgumentValues Summary:
addArgumentValues,   addGenericArgumentValue,   addGenericArgumentValue,   addGenericArgumentValue,   addIndexedArgumentValue,   addIndexedArgumentValue,   addIndexedArgumentValue,   clear,   equals,   getArgumentCount,   getArgumentValue,   getArgumentValue,   getGenericArgumentValue,   getGenericArgumentValue,   getGenericArgumentValues,   getIndexedArgumentValue,   getIndexedArgumentValues,   hashCode,   isEmpty
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.config.ConstructorArgumentValues Detail:
 public  void addArgumentValues(ConstructorArgumentValues other) 
    Copy all given argument values into this object, using separate holder instances to keep the values independent from the original object.

    Note: Identical ValueHolder instances will only be registered once, to allow for merging and re-merging of argument value definitions. Distinct ValueHolder instances carrying the same content are of course allowed.

 public  void addGenericArgumentValue(Object value) 
    Add generic argument value to be matched by type.

    Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).

 public  void addGenericArgumentValue(ConstructorArgumentValues.ValueHolder newValue) 
    Add generic argument value to be matched by type.

    Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).

 public  void addGenericArgumentValue(Object value,
    String type) 
    Add generic argument value to be matched by type.

    Note: A single generic argument value will just be used once, rather than matched multiple times (as of Spring 1.1).

 public  void addIndexedArgumentValue(int index,
    Object value) 
    Add argument value for the given index in the constructor argument list.
 public  void addIndexedArgumentValue(int index,
    ConstructorArgumentValues.ValueHolder newValue) 
    Add argument value for the given index in the constructor argument list.
 public  void addIndexedArgumentValue(int index,
    Object value,
    String type) 
    Add argument value for the given index in the constructor argument list.
 public  void clear() 
    Clear this holder, removing all argument values.
 public boolean equals(Object other) 
 public int getArgumentCount() 
    Return the number of argument values held in this instance, counting both indexed and generic argument values.
 public ConstructorArgumentValues.ValueHolder getArgumentValue(int index,
    Class requiredType) 
    Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type.
 public ConstructorArgumentValues.ValueHolder getArgumentValue(int index,
    Class requiredType,
    Set usedValueHolders) 
    Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type.
 public ConstructorArgumentValues.ValueHolder getGenericArgumentValue(Class requiredType) 
    Look for a generic argument value that matches the given type.
 public ConstructorArgumentValues.ValueHolder getGenericArgumentValue(Class requiredType,
    Set usedValueHolders) 
    Look for the next generic argument value that matches the given type, ignoring argument values that have already been used in the current resolution process.
 public List getGenericArgumentValues() 
    Return the list of generic argument values.
 public ConstructorArgumentValues.ValueHolder getIndexedArgumentValue(int index,
    Class requiredType) 
    Get argument value for the given index in the constructor argument list.
 public Map getIndexedArgumentValues() 
    Return the map of indexed argument values.
 public int hashCode() 
 public boolean isEmpty() 
    Return if this holder does not contain any argument values, neither indexed ones nor generic ones.