RE: Q: Dependent Initialization

"Vladimir Kirichenko" <[email protected]>
Newsgroups gmane.comp.jakarta.avalon.apps.devel,gmane.comp.jakarta.avalon.devel
Message-ID <[email protected]>
>     Vladimir> How could I make dependent initialization of 2
>     Vladimir> services. I.e if service A needs the live instance of
>     Vladimir> service B in his initialization phase?  This is a problem
>     Vladimir> because of uncontrolled order of service initialization.
> Why do you say it is uncontrolled? Which particular container do you
> have in mind?

I dont use any of them. I cannot use them in my project because of some
features of it. I use framework only with some kind of my own container.


>     Vladimir> May be this is reason to add to framework new interface
>     Vladimir> between initialization and start phases with one method
>     Vladimir> setup()? This allows to have a phase where services can
>     Vladimir> interact with live instances of other services.
> If I understand you correctly, all you need to do in e.g. Phoenix is
> specify that B should be provided to A. Then B will be fully initialized
> and started by the time A gets to use it. Does that answer your
> question?

Yes. But this feature provided by particular container only. But the qustion
is about initialization phases that framework is responsible for.

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