Skip to content

Commit

Permalink
Fixed Guice config, marked version 7.0.0-RC1
Browse files Browse the repository at this point in the history
  • Loading branch information
vlahoda committed Mar 11, 2020
1 parent 92fd924 commit 7986e2f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ repositories {

allprojects {
group='cz.incad.kramerius'
version='7.0.0-beta1'
version='7.0.0-RC1'
}


Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package cz.incad.kramerius.service.impl;

import com.google.inject.AbstractModule;
import com.google.inject.Scopes;
import cz.incad.kramerius.relation.RelationService;
import cz.incad.kramerius.relation.impl.RelationServiceImpl;
import cz.incad.kramerius.service.SortingService;

public class SortingModule extends AbstractModule {
@Override
protected void configure() {
bind(RelationService.class).to(RelationServiceImpl.class).in(Scopes.SINGLETON);
bind(SortingService.class).to(SortingServiceImpl.class).in(Scopes.SINGLETON);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -171,12 +171,4 @@ private void initSortingConfigMap() {
}
}

class SortingModule extends AbstractModule {
@Override
protected void configure() {
bind(RelationService.class).to(RelationServiceImpl.class).in(Scopes.SINGLETON);
bind(SortingService.class).to(SortingServiceImpl.class).in(Scopes.SINGLETON);
}
}


0 comments on commit 7986e2f

Please sign in to comment.