http://www.springframework.org/schema/beans
element constructor-arg

Documentation
				
	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
This component is not nillable.

Model
<constructor-arg
  index = xsd:string
  name = xsd:string
  ref = xsd:string
  type = xsd:string
  value = xsd:string>
(description?, (bean | ref | idref | value | null | array | list | set | map | props | (any element from any other namespace))? )
</constructor-arg>


Nested Element Summary
 array
          
 bean
          
 description
          
 idref
          
 list
          
 map
          
 null
          
 props
          
 ref
          
 set
          
 value
          

Attribute Summary
 xsd:stringindex
          The exact index of the argument in the constructor argument list. 
 xsd:stringname
          The exact name of the argument in the constructor argument list. 
 xsd:stringref
           A short-cut alternative to a nested "<ref bean='...'/>" element.  
 xsd:stringtype
          The exact type of the constructor argument. 
 xsd:stringvalue
           A short-cut alternative to a nested "<value>...<value/>" element.  

Attribute Detail

index

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
Use:
optional
Form:
unqualified

name

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
Use:
optional
Form:
unqualified

ref

A short-cut alternative to a nested "<ref bean='...'/>" element.

Type:
xsd:string
Use:
optional
Form:
unqualified

type

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
Use:
optional
Form:
unqualified

value

A short-cut alternative to a nested "<value>...<value/>" element.

Type:
xsd:string
Use:
optional
Form:
unqualified

Source
<xsd:element name="constructor-arg">
<xsd:complexType>
<xsd:sequence>
<xsd:element minOccurs="0" ref="description"/>
<xsd:choice maxOccurs="1" minOccurs="0">
<xsd:element ref="bean"/>
<xsd:element ref="ref"/>
<xsd:element ref="idref"/>
<xsd:element ref="value"/>
<xsd:element ref="null"/>
<xsd:element ref="array"/>
<xsd:element ref="list"/>
<xsd:element ref="set"/>
<xsd:element ref="map"/>
<xsd:element ref="props"/>
<xsd:any namespace="##other" processContents="strict"/>
</xsd:choice>
</xsd:sequence>
<xsd:attribute name="index" type="xsd:string">
</xsd:attribute>
<xsd:attribute name="type" type="xsd:string">
</xsd:attribute>
<xsd:attribute name="name" type="xsd:string">
</xsd:attribute>
<xsd:attribute name="ref" type="xsd:string">
</xsd:attribute>
<xsd:attribute name="value" type="xsd:string">
</xsd:attribute>
</xsd:complexType>
</xsd:element>


Submit a bug or a feature.
Created by xsddoc, a sub project of xframe, hosted at http://xframe.sourceforge.net.