avalon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Berin Loritsch <blorit...@apache.org>
Subject [Fwd: Re: ExcaliburComponentManager: component startup sequence]
Date Fri, 08 Mar 2002 16:49:07 GMT
(My SMTP server is cracking up)



-------- Original Message --------
Subject: Re: ExcaliburComponentManager: component startup sequence
Date: Fri, 08 Mar 2002 09:53:55 -0500
From: Berin Loritsch <bloritsch@apache.org>
To: Avalon Developers List <avalon-dev@jakarta.apache.org>
CC: haul@dvs1.informatik.tu-darmstadt.de
References: 
<MCEHJNGEDNCOGPCCMCEKAEELCNAA.leo.sutic@inspireinfrastructure.com>

Leo Sutic wrote:
 > Berin,
 >
 > this may be something that's needed for the ContainerManager.

We already handle that.  Check it out.

 >
 >     <component role="quux" handler="..."/>
 >
 >     <component role="foo" handler="...">
 >         <instance xyz/>
 >     </component>
 >
 >     <component role="bar" handler="barhandler" depends="foo,quux">
 >         <instance abc/> <!-- needs foo for setup -->
 >     </component>
 >
 >>From: Christian Haul [mailto:haul@dvs1.informatik.tu-darmstadt.de]
 >>
 >>Hi.
 >>
 >>Is it possible to have components that depend on others from the same
 >>configuration file? Like
 >>
 >>   <component foo>
 >>       <instance xyz/>
 >>   </compopnent foo>
 >>
 >>   <component bar>
 >>       <instance abc/> <!-- needs foo for setup -->
 >>   </component bar>
 >>
 >
 > Christian,
 >
 > The only solution I can think of is that you use lazy initialization 
in bar.
 > For every method you expose through bar's interface, call a synchronized
 > setup() method that will set up the component if it has not been done 
yet.
 >
 > Use the compose(), configure() and contextualize() method just to get
 > references
 > to the CM, config and context, and store them in member variables so 
setup()
 > can use them.
 >
 > /LS
 >
 >
 > --
 > To unsubscribe, e-mail: 
<mailto:avalon-dev-unsubscribe@jakarta.apache.org>
 > For additional commands, e-mail: 
<mailto:avalon-dev-help@jakarta.apache.org>
 >
 >



-- 

"They that give up essential liberty to obtain a little temporary safety
   deserve neither liberty nor safety."
                  - Benjamin Franklin


-- 

"They that give up essential liberty to obtain a little temporary safety
  deserve neither liberty nor safety."
                 - Benjamin Franklin


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