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
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev