本文整理匯總了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 ());
}