Den 8. des. 2010 kl. 03:19 skrev Rickard Öberg <[email protected]>:

> On 2010-12-07 20.24, Ronnie Nessa wrote:
>> Hi.
>>
>> How can you define the order services are activated in when you call the 
>> instantiateOnStartup method?
>
> On startup Qi4j will instantiate and activate things in the order they've 
> been defined in the assembly. Layers in the order they've been defined. 
> Modules in a Layer in the order they've been defined. And Services within a 
> Module in the order they've been defined. All artifacts are managed 
> internally as Lists, hence making this deterministic.
>
> The exception to this is if you define these three services, in order:
> A
> B
> C
>
> and A references C. If A uses C in its activation code, then that forces C to 
> be activated earlier.
>
> /Rickard
>

Cool. So if I define the bootstrapping service last I would be certain
that the indexer service runs first? I'll try that and see what my
results are.

_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to