Comment by [email protected]:

Is there any way to bind with provider which uses annotation value?

Example:
{{{
bind(Resource.class)
   .annotatedWith(MyAnnotation.class)
   .toProvider(new MyProvider<MyAnnotation, Resource>{
       public Resource provide(MyAnnotation anno){
          return resoveResourceByAnnoValue(anno.value());
       }
    });
}}}

For more information:
http://code.google.com/p/google-guice/wiki/BindingAnnotations

--
You received this message because you are subscribed to the Google Groups 
"google-guice-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-guice-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to