Hello,
So far using Silk-DI has been great, but I have one question I can't resolve from your documentation. How can I late load additional BinderModules?
My application has the basics:
Main.java
final Injector injector = Bootstrap.injector(RootBundle.class);
RootBundle.java
@Override
protected void bootstrap() {
install(ProductionModule.class);
}
which all works great. Except I also have another Module that I may wish bind additional injectors later if the users' roles support it. So ideally something where I could say
if (some_condition) {
injector.add(MoreBundle.class);
}
Is this possible? Has anyone done this? Did I miss the documentation page which talked about this?
Thanks,
Joshua