Ok Avalon Newbie question here :)

I have two hypothetical Components A and B.

Component A is initializable, startable, threadSafe
When start() is called, it executes a command line string.
This component also has methods to define the arguments that command line is called with.


Component B is Composable, threadSafe
When compose is called B gets A and defines various command line args it needs A to have set.




However I have situations occur when A is started before B sets the command line args.
Thus I have my executable running with the wrong command line args.


The ways I see to fix this are:
1. HACK: make A wait x Seconds before executing the process

2. A waits (in its own thread) until all the components are initialized (is there a way to determine this?),
and then starts itself.


3. ?

I'm figuring you Avalon experts will have much better ideas that I do,
that�s why I'm asking! :)

        RefuX

p.s. Is there really much difference between a Block and a Component?
It just looks to me like the Block author has some ideas that were (for some reason) not rolled in to the main framework, and thus implemented as a different solution.




_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp


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



Reply via email to