Where do yo get the server from? I didn't mention it and the others not either.
Sure the running implementation of the service is not needed to be locally 
available, there was never a question 
regarding this.
Why must we ensure that the injected Service may be no ServiceComposite? If it 
is a ServiceComposite with a remote proxy 
Mixin in the current Module configuration this is perfectly ok, the qi4j 
application on the server then has the Mixin 
which actually implements the service and exports it that the proxy can access 
it ?

Or do I get sth wrong?

Michael

Rickard Öberg schrieb:
> Michael Hunger wrote:
>> So having the base composite internally and delegating to it would not 
>> create inheritance dependencies.
>> Regarding the base composite type. The question is if this unqualified type 
>> is needed. If you look at java perhaps the 
>> question if its sensible/possible to instantiate objects (Object.class) is 
>> sensible. What would you need the most 
>> abstract basic type for. I'm with Niclas in that.
>> What shall be easily possible though for the end user is to provide a 
>> "subtype" of composite that fits their need with 
>> their sub-composite-interface + mixin for that.
> 
> And right now we have sort of started this, with the EntityComposite 
> subtype, and also the ServiceComposite subtype. But, there is a big 
> difference between a service and a server. A client asks for a service 
> to be injected (or looked up through ServiceFinder), not a server, and 
> if what is provided is a direct implementation of that, such as a 
> ServiceComposite, or whether it's hidden behind ten layers of proxies, 
> should not really be important. The final implementation should, in a 
> Qi4j-world, be a ServiceComposite, yes, but if we look at the 
> possibility of having many Qi4j Applications, where a fragment wants a 
> service injected, and then the actual implementation of that is in an 
> Application running remotely, then we need to ensure that the service 
> injection scheme locally does not require that the injected object is a 
> ServiceComposite. It will be, on the other end, but not in the actual VM 
> where a reference to it (or a proxy to it rather) is injected.
> 
> Do you see the difference?
> 
> /Rickard
> 
> 
> _______________________________________________
> 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

Reply via email to