本文整理汇总了Java中com.helger.settings.exchange.configfile.ConfigFileBuilder类的典型用法代码示例。如果您正苦于以下问题:Java ConfigFileBuilder类的具体用法?Java ConfigFileBuilder怎么用?Java ConfigFileBuilder使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigFileBuilder类属于com.helger.settings.exchange.configfile包,在下文中一共展示了ConfigFileBuilder类的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: reinit
import com.helger.settings.exchange.configfile.ConfigFileBuilder; //导入依赖的package包/类
public static void reinit (final boolean bForTest)
{
s_bTestMode = bForTest;
final ConfigFileBuilder aBuilder = new ConfigFileBuilder ();
if (bForTest)
{
aBuilder.addPathFromSystemProperty ("as4.server.test.configfile")
.addPath ("private-test-as4.properties")
.addPath ("test-as4.properties");
}
else
{
aBuilder.addPathFromSystemProperty ("as4.server.configfile")
.addPath ("private-as4.properties")
.addPath ("as4.properties");
}
final ConfigFile aCF = aBuilder.build ();
if (!aCF.isRead ())
throw new InitializationException ("Failed to read AS4 server configuration file!");
s_aLogger.info ("Successfully read AS4 configuration file from " + aCF.getReadResource ().getPath ());
SETTINGS.setAll (aCF.getSettings ());
}