[picocontainer-dev] comments on injection

"Putrycz, Erik" <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
I moved most of my project to pico 2 and was hoping to use the new
injection but currently the only injection available is on methods...

I'm not very keen on the method injection, it creates IMO often too much
verbose code whereas a member injection is quicker to write. Often I
don't even need a getter and setter...

However I think both would be nice to have.

Any objection on adding member injection?

I also think I figured out a way to inject members of an existing object
without modifying the container. I'll see how that turns out.

 

Last comment... I know this is very unpopular here but I'd be nice if
there was some kind of hook in Pico to be able to setup auto
registration of classes. Somekind of callback on getComponent - when not
found - would be nice.

 

Erik Putrycz, Ph.D - Research Associate / [email protected]
<mailto:[email protected]>  / (613) 990 0681

Institute for Information Technology - Software Engineering Group

National Research Council, Canada - Building M-50, 1200 Montreal Road

Ottawa, Ontario, CANADA K1A 0R6
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.