On Google App Engine,
When attempting to do the following in a Module:
bind(Query.class).annotatedWith(Names.named("PersonQuery"))
.toProvider(new Provider<Query>(){
@Override
public Query get() {
return new Query(Person.kind);
}
});
I get the following error:
1) Error in custom provider, java.lang.NullPointerException: No API
environment is registered for this thread.
while locating com.google.appengine.api.datastore.Query annotated
with @com.google.inject.name.Named(value=PersonQuery)
Is Guice unable to use the Google App Engine API Environment?
-Tristan
--
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.