@Override public void configure(BootstrapBinder binder) { if (config.enableAutoBindSingleton() == false) binder.disableAutoBinding(); binder.inStage(config.stage()); binder.inMode(config.mode()); for (Class<? extends PostInjectorAction> action : config.actions()) { try { binder.bindPostInjectorAction().to(action); } catch (Exception e) { throw new ProvisionException("Error creating postInjectorAction '" + action.getName() + "'", e); } } for (Class<? extends ModuleTransformer> transformer : config.transformers()) { try { binder.bindModuleTransformer().to(transformer); } catch (Exception e) { throw new ProvisionException("Error creating postInjectorAction '" + transformer.getName() + "'", e); } } } }