Hi All, at that point, as strongly guice-dependant, I'd like to know when the JSR330 will be included in the podling release :P Thanks in advance, best regards Simo
http://people.apache.org/~simonetripodi/ On Fri, Jan 22, 2010 at 5:17 PM, Stuart McCulloch <[email protected]> wrote: > 2010/1/22 Olivier Grégoire <[email protected]> > >> Dears, >> >> Now that the javax.inject is officially supported (see >> http://java.sun.com/javaee/6/docs/api/javax/inject/package-summary.html), >> when can we expect to have a full support for providers? >> >> I mean that, for the moment (with the latest snapshot), I can't make my >> providers implement javax.inject.Provider because the >> LinkedBindingBuilder#toProvider(Provider) method is still accepting only >> com.google.inject.Provider and not the parent javax.inject.Provider. However >> the other toProvider() methods accept respectively Class<? extends >> javax.inject.Provider>, TypeLiteral<? extends javax.inject.Provider> and >> Key<? extends javax.inject.Provider>. >> >> I've well read the wiki ( >> http://code.google.com/p/google-guice/wiki/JSR330), but it seems that >> people were focused on the upcoming JDK 7 (which includes javax.inject from >> JSR330) and not on the new JavaEE 6 that were released a few weeks ago >> (which includes javax.inject from JSR299). >> >> So being a bit lost, could anyone clarify these points: >> * does the LinkedBindingBuilder#toProvider() not accept >> javax.inject.Provider on purpose or was it simply forgotten? >> * is there plan to support soon the javax.inject of JSR299 or will we have >> to wait until JDK7 for that support ? >> > > FYI, there's a static utility method called "guicify" inside the > com.google.inject.util.Jsr330 class > that lets you turn a javax.inject.Provider object into a > com.google.inject.Provider - for example: > > bind( Foo.class ).toProvider( Jsr330.guicify( myFooProviderObject ) ); > > This class also includes a "named" method which creates JSR330 @Named > annotation objects. > > HTH > > Regards, >> >> Olivier >> >> -- >> You received this message because you are subscribed to the Google Groups >> "google-guice" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]<google-guice%[email protected]> >> . >> For more options, visit this group at >> http://groups.google.com/group/google-guice?hl=en. >> > > > > -- > Cheers, Stuart > > -- > You received this message because you are subscribed to the Google Groups > "google-guice" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<google-guice%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-guice?hl=en. > -- You received this message because you are subscribed to the Google Groups "google-guice" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-guice?hl=en.
