Skip to content

Commit

Permalink
M3-34: specific service builder methods are now public
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Sep 26, 2019
1 parent b763624 commit f1c959e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {

subprojects {

version = "0.3.5"
version = "0.3.6"

apply plugin: 'com.adarshr.test-logger'
apply plugin: 'com.github.ben-manes.versions'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class ServicesBuilder {
private final ServiceConfig appConfig;
private final Executor defaultExecutor = new ForkJoinPool();

private static class Prefs {
public static class Prefs {
final PreferencesFactory preferencesFactory;
final PreferencesService preferencesService;

Expand Down Expand Up @@ -68,7 +68,7 @@ private Services build() {
prefs.getPreferencesFactory());
}

private AnnoService buildAnnotationService() {
public AnnoService buildAnnotationService() {
ServiceConfig.ServiceParams params = appConfig.getAnnotationServiceParamsV1();
AnnoWebServiceFactory factory = new AnnoWebServiceFactory(params.getEndpoint(), params.getTimeout());
AuthService authService = new BasicJWTAuthService(factory,
Expand All @@ -87,15 +87,15 @@ private AnnoServiceV2 buildAnnotationV2Service() {
return new AnnoServiceV2(factory, authService);
}

private MediaService buildMediaService() {
public MediaService buildMediaService() {
ServiceConfig.ServiceParams params = appConfig.getMediaServiceParamsV1();
VamWebServiceFactory factory = new VamWebServiceFactory(params.getEndpoint(), params.getTimeout());
AuthService authService = new BasicJWTAuthService(factory,
new Authorization("APIKEY", params.getClientSecret()));
return new VamService(factory, authService);
}

private ConceptService buildConceptService() {
public ConceptService buildConceptService() {
ServiceConfig.ServiceParams params = appConfig.getConceptServiceParamsV1();
KBWebServiceFactory factory = new KBWebServiceFactory(params.getEndpoint(),
params.getTimeout(), defaultExecutor);
Expand Down

0 comments on commit f1c959e

Please sign in to comment.