Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove unneeded restriction

  • Loading branch information...
commit 8fdc7d99d5bcd578212075d066fe0ee6713420e8 1 parent 9c68f4a
@jfarcand jfarcand authored
View
18 ...ks/src/main/java/org/sonatype/restsimple/sitebricks/guice/RestSimpleSitebricksModule.java
@@ -76,16 +76,14 @@ public RestSimpleSitebricksModule(Binder binder, boolean isChild) {
*/
@Override
protected void configure() {
- // Only bind if we aren't a child of another Injector.
- if (!isChild) {
- bind(ServiceHandlerMapper.class).toInstance(mapper);
- bind(NegotiationTokenGenerator.class).toInstance(tokenGenerator);
- bind(ServiceDefinitionGenerator.class).to(SitebricksServiceDefinitionGenerator.class);
- bind(ServiceDefinition.class).toProvider(ServiceDefinitionProvider.class);
- bind(ServiceDefinitionProvider.class).to(provider);
- binder.bind(ServiceHandlerMapper.class).toInstance(mapper);
- binder.bind(NegotiationTokenGenerator.class).toInstance(tokenGenerator);
- }
+
+ bind(ServiceHandlerMapper.class).toInstance(mapper);
+ bind(NegotiationTokenGenerator.class).toInstance(tokenGenerator);
+ bind(ServiceDefinitionGenerator.class).to(SitebricksServiceDefinitionGenerator.class);
+ bind(ServiceDefinition.class).toProvider(ServiceDefinitionProvider.class);
+ bind(ServiceDefinitionProvider.class).to(provider);
+ binder.bind(ServiceHandlerMapper.class).toInstance(mapper);
+ binder.bind(NegotiationTokenGenerator.class).toInstance(tokenGenerator);
bind(ResourceModuleConfig.class).toInstance(new ResourceModuleConfig<Module>(){

0 comments on commit 8fdc7d9

Please sign in to comment.
Something went wrong with that request. Please try again.