/** * Registers a URL of a configuration resource to be loaded by the app unconditionally and prior to any explicitly * specified configs. Can be called multiple times for multiple resources. * * @param configResourceId a resource path compatible with {@link io.bootique.resource.ResourceFactory} denoting * a configuration source. E.g. "a/b/my.yml", or "classpath:com/foo/another.yml". * @return this extender instance. * @since 0.25 */ public BQCoreModuleExtender addConfig(String configResourceId) { contributeConfigs().addBinding().toInstance(configResourceId); return this; }
@Override public BQCoreModuleExtender initAllExtensions() { contributeConfigs(); contributeProperties(); contributeVariables(); contributeVariableDeclarations(); contributeLogLevels(); contributeOptions(); contributeCommands(); contributeCommandDecorators(); contributeOptionDecorators(); contributeValueObjectsDescriptors(); contributeOptionPathDecorators(); return this; }
/** * Registers a URL of a configuration resource to be loaded by the app unconditionally and prior to any explicitly * specified configs. Can be called multiple times for multiple resources. * * @param configResourceId a resource path compatible with {@link io.bootique.resource.ResourceFactory} denoting * a configuration source. E.g. "a/b/my.yml", or "classpath:com/foo/another.yml". * @return this extender instance. * @since 0.25 */ public BQCoreModuleExtender addConfig(String configResourceId) { contributeConfigs().addBinding().toInstance(configResourceId); return this; }
@Override public BQCoreModuleExtender initAllExtensions() { contributeConfigs(); contributeProperties(); contributeVariables(); contributeVariableDeclarations(); contributeLogLevels(); contributeOptions(); contributeCommands(); contributeCommandDecorators(); contributeOptionDecorators(); return this; }