"Qi4j can find all the needed generics info from that"

Great! That's smarter than Guice and removes the clutter I was speaking of.

--> Sorry for crippled "inline" commenting. - email client is not capable 
really.


Toni Menzel   
Consultant | ISG Technology   
Morgan Stanley Bank AG | Junghofstrasse 13-15 | Floor 0G   
60311 Frankfurt   
Phone: +49 69 2166-2103   
[email protected]   

-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Rickard Öberg
Sent: Wednesday, June 29, 2011 9:22 AM
To: [email protected]
Subject: Re: [qi4j-dev] Generic Services in Qi4J ?

On 6/29/11 15:17 , Menzel, Toni wrote:
> Thanks Rickard for looking into this.
> When you say "got generic lookups like this to work.." you refer to 2.0 
> branch status, correct ?

Yes.

> As of now, I think the most necessary work is on the "registering a generic 
> service" side.
> To write it up like what I know in Guice (with all the clutter I personally 
> don't like):
> bind(new TypeLiteral<Foo<Bar>>(){}).to(X);

The thing is, if X is declared as
interface X
   implements Foo<Bar>, ServiceComposite{}

then that is all that is needed. Qi4j can find all the needed generics info 
from that. Is that enough?



> As of 2.0 branch, looking into it as I think this is crucial when considering 
> Qi4J, next to its strong DDD focus also as a valuable DI framework.
>
> I would see ( maybe a future version of ) qi4j as a superset of DI frameworks.
>
> - or would you say that pure DI frameworks (mostly familiar with Guice) are 
> by concept superior to qi4j in its domain and you shoult never attempt to 
> think "guice" in qi4j ?

No, Qi4j should be able to handle pretty much all of the things you'd expect 
from a DI framework. The implementation might be slightly different though, as 
in the above. But conceptually it should be on the same level, I hope/think.

/Rickard

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

--------------------------------------------------------------------------
NOTICE: If received in error, please destroy and notify sender. Sender does not 
intend to waive confidentiality or privilege. Use of this email is prohibited 
when received in error.
 
Morgan Stanley Bank AG
Junghofstrasse 13-15
60311 Frankfurt
 
Vorstand: Dr. Dirk Notheis, Vorsitzender; Philipp Lingnau; Dr. Hanns Christoph 
Siebold; Kai Tschöke
Vorsitzender des Aufsichtsrats: Dr. Lutz R. Raettig 
Sitz Frankfurt am Main, Handelsregister Frankfurt am Main HR B 39346

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

Reply via email to