[picocontainer-dev] child container API

"Putrycz, Erik" <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
Currently I find the child API rather confusing. There are too many ways
to create a child container:

pico.makeChildContainer()

new PicoBuilder(parent)

pico.addChildContainer

new DefaultPicoContainer(parent)

 

I'm not totally sure what the purpose of pico.addChildContainer is. It
doesn't set the parent on the child container and this could lead to an
incoherent state.

And now that there is the picobuilder, why not restrict the creation of
child containers to it?

 

Erik.
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.