avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@apache.org>
Subject RE: Component instantiation loop
Date Tue, 28 May 2002 13:39:31 GMT
What are you using?

Both the ECM and Fortress load up the components before initializing
them.

However, sometimes that loop is best broken in the initialize() method
(Initializable interface).  The current ECM also supposedly checks for
loops like this...

> -----Original Message-----
> From: carlesricomiro@gsmbox.es [mailto:carlesricomiro@gsmbox.es] 
> Sent: Tuesday, May 28, 2002 8:53 AM
> To: avalon-dev@jakarta.apache.org
> Subject: Component instantiation loop
> 
> 
> I am developing an application with Avalon, using it to 
> manage the system configuration and build its components.
> 
> When the ExcaliburComponentManager builds the components it 
> seems to enter a loop like this:
> 
>       Component  A ---> lookup( Component B )
>       Component B  ---> lookup( Component A )
> 
> Both components A and B are ThreadSafe.
> 
> How could I solve this problem? Is there any component available 
> aimed at keeping a list of instantiated but not yet 
> initializated components?
> 
> Thanks a lot.
> 
> Carles.
> 
> -------------------------------------------------
> Este mensaje ha sido enviado a trav├ęs de http://es.my.gsmbox.com
> 
> --
> To unsubscribe, e-mail:   
> <mailto:avalon-dev-> unsubscribe@jakarta.apache.org>
> For 
> additional commands, 
> e-mail: <mailto:avalon-dev-help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:avalon-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-dev-help@jakarta.apache.org>


Mime
View raw message