Showing:

Annotations
Attributes
Model
Properties
Element constructor-arg
Namespace http://www.springframework.org/schema/beans
Annotations

java:org.springframework.beans.factory.config.ConstructorArgumentValues

Bean definitions can specify zero or more constructor arguments.
	This is an alternative to "autowire constructor".
	Arguments correspond to either a specific index of the constructor
	argument list or are supposed to be matched generically by type.

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

	constructor-arg elements are also used in conjunction with the
	factory-method element to construct beans using static or instance
	factory methods.
Properties
content complex
Model
description{0,1} , (bean | ref | idref | value | null | array | list | set | map | props | ANY element from ANY namespace OTHER than 'http://www.springframework.org/schema/beans')
Children array, bean, description, idref, list, map, null, props, ref, set, value
Attributes
QName Type Use Annotation
index xsd:string optional
The exact index of the argument in the constructor argument list.
Only needed to avoid ambiguities, e.g. in case of 2 arguments of
the exact same type.
name xsd:string optional
The exact name of the argument in the constructor argument list.
Only needed to avoid ambiguities, e.g. in case of 2 arguments of
the exact same type. Note: This requires debug symbols to be
stored in the class file in order to introspect argument names!
ref xsd:string optional
A short-cut alternative to a nested "<ref bean='...'/>" element.
type xsd:string optional
The exact type of the constructor argument. Only needed to avoid
ambiguities, e.g. in case of 2 single argument constructors
that can both be converted from a String.
value xsd:string optional
A short-cut alternative to a nested "<value>...<value/>" element.
Attribute constructor-arg / @index
Namespace No namespace
Annotations
The exact index of the argument in the constructor argument list.
Only needed to avoid ambiguities, e.g. in case of 2 arguments of
the exact same type.
Type xsd:string
Properties
content simple
Attribute constructor-arg / @type
Namespace No namespace
Annotations
The exact type of the constructor argument. Only needed to avoid
ambiguities, e.g. in case of 2 single argument constructors
that can both be converted from a String.
Type xsd:string
Properties
content simple
Attribute constructor-arg / @name
Namespace No namespace
Annotations
The exact name of the argument in the constructor argument list.
Only needed to avoid ambiguities, e.g. in case of 2 arguments of
the exact same type. Note: This requires debug symbols to be
stored in the class file in order to introspect argument names!
Type xsd:string
Properties
content simple
Attribute constructor-arg / @ref
Namespace No namespace
Annotations
A short-cut alternative to a nested "<ref bean='...'/>" element.
Type xsd:string
Properties
content simple
Attribute constructor-arg / @value
Namespace No namespace
Annotations
A short-cut alternative to a nested "<value>...<value/>" element.
Type xsd:string
Properties
content simple