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.
The exact name of the argument in the constructor argument list.Only needed to avoid ambiguities, e.g. in case of 2 arguments ofthe exact same type. Note: This requires debug symbols to bestored in the class file in order to introspect argument names!
The exact type of the constructor argument. Only needed to avoidambiguities, e.g. in case of 2 single argument constructorsthat can both be converted from a String.
The exact type of the constructor argument. Only needed to avoidambiguities, e.g. in case of 2 single argument constructorsthat can both be converted from a String.
The exact name of the argument in the constructor argument list.Only needed to avoid ambiguities, e.g. in case of 2 arguments ofthe exact same type. Note: This requires debug symbols to bestored in the class file in order to introspect argument names!