Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

remove unneeded restriction

  • Loading branch information...
commit 8fdc7d99d5bcd578212075d066fe0ee6713420e8 1 parent 9c68f4a
Jeanfrancois Arcand jfarcand authored
18 ...simple-sitebricks/src/main/java/org/sonatype/restsimple/sitebricks/guice/RestSimpleSitebricksModule.java
View
@@ -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>(){
Please sign in to comment.
Something went wrong with that request. Please try again.