Fixed guice
This commit is contained in:
parent
2823711fcd
commit
5312e8d6b4
1 changed files with 1 additions and 1 deletions
|
|
@ -52,7 +52,7 @@ public class MyModule implements Module {
|
||||||
binder.bind(WebSocketUtils.class).in(Scopes.SINGLETON);
|
binder.bind(WebSocketUtils.class).in(Scopes.SINGLETON);
|
||||||
binder.bind(NutritionDetailsCtrl.class).in(Scopes.SINGLETON);
|
binder.bind(NutritionDetailsCtrl.class).in(Scopes.SINGLETON);
|
||||||
binder.bind(NutritionViewCtrl.class).in(Scopes.SINGLETON);
|
binder.bind(NutritionViewCtrl.class).in(Scopes.SINGLETON);
|
||||||
binder.bind(HttpClient.class).in(Scopes.SINGLETON);
|
binder.bind(HttpClient.class).toInstance(HttpClient.newHttpClient());
|
||||||
binder.bind(ConfigService.class).toInstance(new ConfigService(Path.of("config.json")));
|
binder.bind(ConfigService.class).toInstance(new ConfigService(Path.of("config.json")));
|
||||||
binder.bind(new TypeLiteral<WebSocketDataService<Long, Recipe>>() {}).toInstance(
|
binder.bind(new TypeLiteral<WebSocketDataService<Long, Recipe>>() {}).toInstance(
|
||||||
new WebSocketDataService<>()
|
new WebSocketDataService<>()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue