Rickard, Would it be possible to raise an exception when a direct call is made (not going through the proxy) ?
phil On Fri, Jun 4, 2010 at 10:47 AM, Stanislav Muhametsin < [email protected]> wrote: > Quoting Rickard Öberg <[email protected]>: > > So now there's a decision to be made: >> Either calls within a mixin will cause concerns to be invoked, or not. If >> not, then to force them to be invoked you have to do a @This injection and >> then call that instead, to ensure that the call goes through the proxy. >> >> What makes the most sense? I guess we have to also remember that code like >> this will not work if methods are not routed through the composite within >> the mixin: >> > > In my app, I'm also invoking all my calls to "myself" through > @This-injected fields. IIRC there was some tutorial or something on the > qi4j.org site, which urged to this kind of behaviour, saying specifically > that if i just to "this.foo(...)" it might not execute mixins. Guess someone > was a psychic. :) > > > > _______________________________________________ > qi4j-dev mailing list > [email protected] > http://lists.ops4j.org/mailman/listinfo/qi4j-dev >
_______________________________________________ qi4j-dev mailing list [email protected] http://lists.ops4j.org/mailman/listinfo/qi4j-dev

