This commit is contained in:
Zoltan Haindrich 2024-05-16 11:18:54 +00:00
parent 3658ab24c3
commit 607ef174c5
1 changed files with 10 additions and 11 deletions

View File

@ -78,18 +78,17 @@ public class SqlModule implements Module
return;
}
PolyBind.optionBinder(binder, Key.get(ViewManager.class))
.addBinding(NoopViewManager.TYPE)
.to(NoopViewManager.class)
.in(LazySingleton.class);
PolyBind.createChoiceWithDefault(
binder,
PROPERTY_SQL_VIEW_MANAGER_TYPE,
Key.get(ViewManager.class),
NoopViewManager.TYPE
);
PolyBind.optionBinder(binder, Key.get(ViewManager.class))
.addBinding(NoopViewManager.TYPE)
.to(NoopViewManager.class)
.in(LazySingleton.class);
PolyBind.createChoiceWithDefault(
binder,
PROPERTY_SQL_VIEW_MANAGER_TYPE,
Key.get(ViewManager.class),
NoopViewManager.TYPE
);
PolyBind.optionBinder(binder, Key.get(DruidSchemaManager.class))
.addBinding(NoopDruidSchemaManager.TYPE)