-
Notifications
You must be signed in to change notification settings - Fork 10
Client library
Pradeep Bashyal edited this page Jan 8, 2016
·
1 revision
The source code repository contains a Java client library built using Retrofit. To use this client library, simply create a Guice Injector with the client FeatureServiceModule and provide an EndpointUri annotated String.
Injector injector = Guice.createInjector(new FeatureServiceModule(), new AbstractModule() {
@Override
protected void configure() {
bind(String.class).annotatedWith(EndpointUrl.class).toInstance("http://localhost");
}
});
FeatureService featureService = injector.getInstance(FeatureService.class);