use of com.nexblocks.authguard.config.EmptyConfigContext in project AuthGuard by AuthGuard.
the class ConfigBinder method configure.
@Override
protected void configure() {
configContext.subContexts().forEach(subContext -> {
bind(ConfigContext.class).annotatedWith(Names.named(subContext)).toInstance(configContext.getSubContext(subContext));
});
// if nothing was
bind(ConfigContext.class).annotatedWith(Named.class).toInstance(new EmptyConfigContext());
bind(ConfigContext.class).toInstance(configContext);
}
Aggregations