On Mon, Oct 22, 2012 at 8:05 PM, Paul Merlin <[email protected]> wrote:
> Asking for an injection like this ; > > @This Configuration<Enabled> config; > > will trigger an Entity lookup using the enclosing service's identity. > I cannot see how it could get the wrong configuration entity. That is not what he is saying; I think it is like this; All service configurations are having Enabled as a supertype. There is no default initialization for any of the service configuration. In the assembly, a forMixin(Enabled.class) is used to set the default value to TRUE. But on occasions, Enabled is not set to its default value. forMixin() operates on the mixin type, not the composite type. So, if many composites are using the same mixin type, there would only be a single default value. The question is then; Is it possible that StreamFlow has another forMixin() of a type where Enabled is involved (perhaps not directly) which could cause the defaults to be inadvertently changed. It is a complex issue, and it would be great with a testcase, but I doubt that can be produced before we guess what is happening. Cheers -- Niclas Hedhman, Software Developer 河南南路555弄15号1901室。 http://www.qi4j.org - New Energy for Java I live here; http://tinyurl.com/3xugrbk I work here; http://tinyurl.com/6a2pl4j I relax here; http://tinyurl.com/2cgsug _______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

