| |||||||
| DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES | ||||||
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.
| Nested Element Summary | |
| array |
| bean |
| description |
| idref |
| list |
| map |
| null |
| props |
| ref |
| set |
| value |
| Attribute Summary | |
xsd:string | indexThe exact index of the argument in the constructor argument list. |
xsd:string | nameThe exact name of the argument in the constructor argument list. |
xsd:string | refA short-cut alternative to a nested "<ref bean='...'/>" element. |
xsd:string | typeThe exact type of the constructor argument. |
xsd:string | valueA short-cut alternative to a nested "<value>...<value/>" element. |
| Attribute Detail |
xsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualifiedxsd:stringoptionalunqualified<xsd:element name="constructor-arg"><xsd:complexType></xsd:element><xsd:sequence><xsd:choice maxOccurs="1" minOccurs="0"></xsd:sequence><xsd:any namespace="##other" processContents="strict"/></xsd:choice><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:complexType>
</xsd:attribute>
| |||||||
| DETAILS: DOCUMENTATION | ELEMENTS | ATTRIBUTES | SOURCE | FRAMES | NO FRAMES | ||||||