Steve's reply is very valid. -execute indicates to Merlin that when the life 
cycle initialization is completed, start the shutdown. This mode mainly 
exists to be able to run testcases.

On Sunday 01 August 2004 04:29, David Leangen wrote:

> To be precise, this doesn't apply exactly to my situation. The difference
> is that ServiceA and ServiceB must NOT be dependent. They must be
> completely independent.

> The way I've been attempting to wait for the completion of ServiceA is
> simply by using a listener/observer. This should work, right?

How can you listen to a component that you don't "know about" (i.e no 
dependency). Please note that the dependency can be declared both optional 
and against very generic interfaces.

> So, either this should not be done (and your suggestion was wrong) or there
> is a bug. (Or I'm really tired and I'm overlooking something really
> obvious.)

Nah,,, it ain't that bad.


>     * @avalon.dependency type="ServiceA:1.0" key="serviceA"
>         m_serviceA = (ServiceA) manager.lookup( "serviceAProvider" );

This doesn't work, and you should get a ServiceException, saying that 
"serviceAProvider" is unknown. The "key" must match the lookup() argument.

Somehow I have the feeling that you are just trying to fool around to get 
grips with the concepts, and perhaps not very comfortable with the way we do 
things in Avalon. If you are trying to give us a simplified view of a 
real-world problem, perhaps it is better if you give me the 'reality' and 
explain what you try to do, and I'll tell you how to go about it.

Cheers
Niclas
-- 
   +------//-------------------+
  / http://www.bali.ac        /
 / http://niclas.hedhman.org / 
+------//-------------------+


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to