Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
RE: [platform-ui-dev] Component framework proposal version 1.0.4 available

>	For more on constructor injection, see www.picocontainer.org. 

Ok, after reading picocontainer.org and the references there it makes more sense. You should definitely include that in the doc.

>	I suspect you're commenting on the heavy usage of the word "interface". Would
> "specification" be better? 

No, that would be worse. Maybe you should use the PicoContainer terminology such as parameters and implementations.

The Fowler paper at http://www.martinfowler.com/articles/injection.html recommends that frameworks implement both Constructor and Setter injection. Also it doesn't have anything about your optional parameters (section 2.8). Since you're discouraging optional parameters yourself, if you had Setter injection maybe optional parameters wouldn't be needed at all.


Back to the top