/** * @param configPath a dot-separated "path" that navigates through the configuration tree to the property that * should be bound form a variable. E.g. "jdbc.myds.password". * @param name public name of the variable. * @param description the description for variable. * @return this extender instance. * @since 1.0.RC1 * Declares a configuration variable for the given config path, given name and given description. */ public BQCoreModuleExtender declareVar(String configPath, String name, String description) { DeclaredVariable var = new DeclaredVariable(configPath, name, description); contributeVariableDeclarations().addBinding().toInstance(var); return this; }
@Override public BQCoreModuleExtender initAllExtensions() { contributeConfigs(); contributeProperties(); contributeVariables(); contributeVariableDeclarations(); contributeLogLevels(); contributeOptions(); contributeCommands(); contributeCommandDecorators(); contributeOptionDecorators(); contributeValueObjectsDescriptors(); contributeOptionPathDecorators(); return this; }
/** * Declares a configuration variable for the given config path and given name. * * @param configPath a dot-separated "path" that navigates through the configuration tree to the property that * should be bound form a variable. E.g. "jdbc.myds.password". * @param name public name of the variable. * @return this extender instance. */ public BQCoreModuleExtender declareVar(String configPath, String name) { DeclaredVariable var = new DeclaredVariable(configPath, name); contributeVariableDeclarations().addBinding().toInstance(var); return this; }
@Override public BQCoreModuleExtender initAllExtensions() { contributeConfigs(); contributeProperties(); contributeVariables(); contributeVariableDeclarations(); contributeLogLevels(); contributeOptions(); contributeCommands(); contributeCommandDecorators(); contributeOptionDecorators(); return this; }