@Override protected void configure() { // providers bound explicitly to tie them to child injector bind(DynamicClassProvider.class); bind(DynamicSingletonProvider.class); // anchor bean used to tie dynamically provided beans to child injector bind(AnchorBean.class).in(Singleton.class); }