[cc: google-gin group]
Phil,
to make it clearer on the GIN side, how about a GinScope annotation taking
as value a scope annotation, and having GIN use that scope annotation when
JIT-binding to the GWT.create() call?
I.e.
@GinScope(@Singleton)
public interface MyRequestFactory extends RequestFactory {
...
}
and GIN would then create the following binding (sort of):
bind(MyRequestFactory.class).toProvider(new
GwtDotCreateProvider(MyRequestFactory.class)).in(Singleton.class)
Or, because GIN doesn't support custom scopes (yet!), simply have a
@GinSingleton or @GwtDotCreateSingleton annotation (that's *not* a Guice
@ScopeAnnotation).
--
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.