Tobias Ivarsson wrote:
> I was wondering about the ordering of the invocations of 
> Activatable#passivate() for services that depend on other services.
> 
> If service A depends on service B, are there any guarantees that service 
> B is still active when passivate() is invoked on service A?

Hm, excellent question. No, right now the passivate happens in the order 
that the services were defined. But, if A uses B, but A is registered 
before B (so it should faily if it uses B in activate()) I think B will 
actually be activated when A tries to use it.

There should probably be some reordering done based on injection 
dependencies between the services, so that this is not a problem. I need 
to look into that.

/Rickard


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

Reply via email to