Example usage for Java org.springframework.beans.factory.config ConstructorArgumentValues fields, constructors, methods, implement or subclass
The text is from its open source code.
ConstructorArgumentValues() Create a new empty ConstructorArgumentValues object. |
void | addArgumentValues(@Nullable ConstructorArgumentValues other) Copy all given argument values into this object, using separate holder instances to keep the values independent from the original object. |
void | addGenericArgumentValue(Object value) Add a generic argument value to be matched by type. |
void | addGenericArgumentValue(ValueHolder newValue) Add a generic argument value to be matched by type or name (if available). |
void | addGenericArgumentValue(Object value, String type) Add a generic argument value to be matched by type. |
void | addIndexedArgumentValue(int index, @Nullable Object value) Add an argument value for the given index in the constructor argument list. |
void | addIndexedArgumentValue(int index, ValueHolder newValue) Add an argument value for the given index in the constructor argument list. |
void | addIndexedArgumentValue(int index, @Nullable Object value, String type) Add an argument value for the given index in the constructor argument list. |
void | clear() Clear this holder, removing all argument values. |
int | getArgumentCount() Return the number of argument values held in this instance, counting both indexed and generic argument values. |
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. |
ValueHolder | getArgumentValue(int index, @Nullable Class> requiredType, @Nullable String requiredName, @Nullable Set Look for an argument value that either corresponds to the given index in the constructor argument list or generically matches by type. |
ValueHolder | getGenericArgumentValue(@Nullable Class> requiredType, @Nullable String requiredName, @Nullable Set 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. |
List | getGenericArgumentValues() Return the list of generic argument values. |
ValueHolder | getIndexedArgumentValue(int index, @Nullable Class> requiredType) Get argument value for the given index in the constructor argument list. |
Map | getIndexedArgumentValues() Return the map of indexed argument values. |
boolean | hasIndexedArgumentValue(int index) Check whether an argument value has been registered for the given index. |