Re: [picocontainer-dev] org.picocontainer.PicoCompositionException question

Konstantin Priblouda <kpriblouda-/[email protected]>
Newsgroups gmane.comp.java.picocontainer.devel
Message-ID <[email protected]>
--- "Putrycz, Erik" <[email protected]>
wrote:

> 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?

because some other lifecycle enabled component may use
this? 

regards,

----[ Konstantin Pribluda http://www.pribluda.de ]----------------
JTec quality components: http://www.pribluda.de/projects/


       
____________________________________________________________________________________
Moody friends. Drama queens. Your life? Nope! - their life, your story. Play Sims Stories at Yahoo! Games.
http://sims.yahoo.com/  

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email
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.