mirror of https://github.com/apache/jclouds.git
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:
parent
3087cce540
commit
a22143a27d
|
@ -128,13 +128,12 @@ public class GuiceServletConfig extends GuiceServletContextListener {
|
||||||
return Guice.createInjector(new ServletModule() {
|
return Guice.createInjector(new ServletModule() {
|
||||||
@Override
|
@Override
|
||||||
protected void configureServlets() {
|
protected void configureServlets() {
|
||||||
bind(new TypeLiteral<Map<String, BlobStoreContext<?, ?>>>() {
|
bind(new TypeLiteral<Map<String, BlobStoreContext<?, ?>>>() {})
|
||||||
}).toInstance(GuiceServletConfig.this.providerTypeToBlobStoreMap);
|
.toInstance(providerTypeToBlobStoreMap);
|
||||||
bind(TwitterClient.class).toInstance(twitterClient);
|
bind(TwitterClient.class).toInstance(twitterClient);
|
||||||
bindConstant().annotatedWith(Jsr330.named(PROPERTY_TWEETSTORE_CONTAINER)).to(container);
|
bindConstant().annotatedWith(Jsr330.named(PROPERTY_TWEETSTORE_CONTAINER)).to(container);
|
||||||
serve("/store/*").with(StoreTweetsController.class);
|
serve("/store/*").with(StoreTweetsController.class);
|
||||||
serve("/tweets/*").with(AddTweetsController.class);
|
serve("/tweets/*").with(AddTweetsController.class);
|
||||||
requestInjection(this);
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue