gpt4 book ai didi

org.cfg4j.source.context.propertiesprovider.YamlBasedPropertiesProvider.()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-16 02:45:31 26 4
gpt4 key购买 nike

本文整理了Java中org.cfg4j.source.context.propertiesprovider.YamlBasedPropertiesProvider.<init>()方法的一些代码示例,展示了YamlBasedPropertiesProvider.<init>()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YamlBasedPropertiesProvider.<init>()方法的具体详情如下:
包路径:org.cfg4j.source.context.propertiesprovider.YamlBasedPropertiesProvider
类名称:YamlBasedPropertiesProvider
方法名:<init>

YamlBasedPropertiesProvider.<init>介绍

暂无

代码示例

代码示例来源:origin: cfg4j/cfg4j

/**
 * Construct {@link ConfigurationSource} backed by files. File paths should by provided by
 * {@link ConfigFilesProvider} and will be treated as relative paths to the environment provided in
 * {@link #getConfiguration(Environment)} calls (see corresponding javadoc for detail). Configuration
 * file type is detected using file extension (see {@link PropertiesProviderSelector}).
 *
 * @param configFilesProvider {@link ConfigFilesProvider} supplying a list of configuration files to use
 */
public FilesConfigurationSource(ConfigFilesProvider configFilesProvider) {
 this(configFilesProvider, new PropertiesProviderSelector(
   new PropertyBasedPropertiesProvider(), new YamlBasedPropertiesProvider(), new JsonBasedPropertiesProvider()
 ));
}

代码示例来源:origin: cfg4j/cfg4j

/**
 * Construct {@link ConfigurationSource} backed by classpath files. File paths should by provided by
 * {@link ConfigFilesProvider} and will be treated as relative paths to the environment provided in
 * {@link #getConfiguration(Environment)} calls (see corresponding javadoc for detail). Configuration
 * file type is detected using file extension (see {@link PropertiesProviderSelector}).
 *
 * @param configFilesProvider {@link ConfigFilesProvider} supplying a list of configuration files to use
 */
public ClasspathConfigurationSource(ConfigFilesProvider configFilesProvider) {
 this(configFilesProvider, new PropertiesProviderSelector(
   new PropertyBasedPropertiesProvider(), new YamlBasedPropertiesProvider(), new JsonBasedPropertiesProvider()
 ));
}

代码示例来源:origin: cfg4j/cfg4j

@BeforeEach
void setUp() {
 provider = new YamlBasedPropertiesProvider();
}

代码示例来源:origin: cfg4j/cfg4j

/**
 * Construct {@link GitConfigurationSource}s builder
 * <p>
 * Default setup (override using with*() methods)
 * <ul>
 * <li>BranchResolver: {@link FirstTokenBranchResolver}</li>
 * <li>PathResolver: {@link AllButFirstTokenPathResolver}</li>
 * <li>ConfigFilesProvider: {@link DefaultConfigFilesProvider}</li>
 * <li>tmpPath: System.getProperty("java.io.tmpdir")</li>
 * <li>tmpRepoPrefix: "cfg4j-config-git-config-repository"</li>
 * <li>propertiesProviderSelector: {@link PropertiesProviderSelector} with {@link PropertyBasedPropertiesProvider}
 * and {@link YamlBasedPropertiesProvider} providers</li>
 * </ul>
 */
public GitConfigurationSourceBuilder() {
 branchResolver = new FirstTokenBranchResolver();
 pathResolver = new AllButFirstTokenPathResolver();
 tmpPath = Paths.get(System.getProperty("java.io.tmpdir"));
 tmpRepoPrefix = "cfg4j-git-config-repository";
 configFilesProvider = new DefaultConfigFilesProvider();
 propertiesProviderSelector = new PropertiesProviderSelector(
   new PropertyBasedPropertiesProvider(), new YamlBasedPropertiesProvider(), new JsonBasedPropertiesProvider()
 );
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com