On 2010-12-07 23.40, Niclas Hedhman wrote:
I can't really see the usecase where you would need an ordered startup without having the services dependent on each other, since if they have injection of the depenendency, then Qi4j will ensure that the injected service is activated before any methods are called... (Note to myself; Does this means that instantiateOnStartup should actually be called activatedOnStartup?? )
No, because it will only be activated if it implements Activatable. Mixins might still implement Initializable, which will also be called if instantiateOnStartup is used. Activatable is just one possible side-effect of being instantiated.
IIRC (Rickard can correct me), the ServiceReference is created at Qi4j application activation and kept in each Module. When a service is selected for injection by a direct service type reference, such as
<snip> All of the rules given by Niclas are correct. /Rickard _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

