[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