Hi all,
..
- Should there be an attribute on <construct> to explicitly enable or
disable this constructor autowiring (e.g. "autowire-constructor")? IMO the BuilderFactory should be default autowire the constructor if
there are no declared constructor parameters. This should work well
for both the setter based _and_ constructor based dependency injection
camps.
I can imagine services where it is possible to use both constructor parameters and setters for configuration. To prevent double wiring it would be nice to switch off one type of autowiring. How about extending the autowire-services attribute to support yes/no/constructor/setter ?
- Should BuilderFactory report an error if there are multiple constructors which seem equally adequate (same number of parameters and a matching service for each)?
Probably these constructors have never been designed for autowiring. So I would log a warning only.
Achim Huegen
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
