[picocontainer-dev] org.picocontainer.PicoCompositionException question

"Putrycz, Erik" <[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
I have been hit by the following exception lately

"org.picocontainer.PicoCompositionException: Cannot remove components
after the container has started" and have been wondering about the
rationale. If the component is not startable and its lifecycle is not
managed, why shouldn't I be able to remove it?

E.g

 

_pico.addComponent(customerData);

_pico.start();

... do stuff that involves customerData

_pico.removeComponentByInstance(customerData);

... do stuff that doesn't involve customerData and allow customerData to
be gced

==>    not possible... why?

 

Erik Putrycz, Ph.D - Research Associate / (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.