com.scalar.dl.client.service.ClientServiceFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scalardl-java-client-sdk Show documentation
Show all versions of scalardl-java-client-sdk Show documentation
A client-side Java library to interact with Scalar DL network.
package com.scalar.dl.client.service;
import com.google.inject.Guice;
import com.google.inject.Injector;
import com.scalar.dl.client.config.ClientConfig;
/** A factory class to instantiate {@link ClientService} */
public class ClientServiceFactory {
private final Injector injector;
public ClientServiceFactory(ClientConfig config) {
injector = Guice.createInjector(new ClientModule(config));
}
/**
* Returns a {@link ClientService} instance
*
* @return a {@link ClientService} instance
*/
public ClientService getClientService() {
return injector.getInstance(ClientService.class);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy