Removed a potentially confusing self-injection request. Integration tests pass, hope it also works on the GAE. Apologies if the previous code is in some way required on the GAE itself.

git-svn-id: http://jclouds.googlecode.com/svn/trunk@2593 3d8758e0-26b5-11de-8745-db77d3ebf521
This commit is contained in:
sharedocs1@gmail.com 2010-01-04 19:23:08 +00:00
parent 3087cce540
commit a22143a27d
1 changed files with 2 additions and 3 deletions

View File

@ -128,13 +128,12 @@ public class GuiceServletConfig extends GuiceServletContextListener {
return Guice.createInjector(new ServletModule() {
@Override
protected void configureServlets() {
bind(new TypeLiteral<Map<String, BlobStoreContext<?, ?>>>() {
}).toInstance(GuiceServletConfig.this.providerTypeToBlobStoreMap);
bind(new TypeLiteral<Map<String, BlobStoreContext<?, ?>>>() {})
.toInstance(providerTypeToBlobStoreMap);
bind(TwitterClient.class).toInstance(twitterClient);
bindConstant().annotatedWith(Jsr330.named(PROPERTY_TWEETSTORE_CONTAINER)).to(container);
serve("/store/*").with(StoreTweetsController.class);
serve("/tweets/*").with(AddTweetsController.class);
requestInjection(this);
}
});
}