本文整理汇总了Java中org.jpos.core.ConfigurationException类的典型用法代码示例。如果您正苦于以下问题:Java ConfigurationException类的具体用法?Java ConfigurationException怎么用?Java ConfigurationException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigurationException类属于org.jpos.core包,在下文中一共展示了ConfigurationException类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setConfiguration
import org.jpos.core.ConfigurationException; //导入依赖的package包/类
/**
* 获取配置信息
*/
@Override
public void setConfiguration(Configuration cfg)
throws ConfigurationException {
String config = cfg.get("config");
long watch = cfg.getLong("watch");
this.logName = cfg.get("log-name");
if (watch == 0)
watch = FileWatchdog.DEFAULT_DELAY;
if ((config != null) && (!config.trim().equals(""))) {
DOMConfigurator.configureAndWatch(config, watch);
}
setLevel(cfg.get("priority"));
}
示例2: setConfiguration
import org.jpos.core.ConfigurationException; //导入依赖的package包/类
@Override
public void setConfiguration(Configuration cfg)
throws ConfigurationException {
this.setWebservicePort(cfg.getInt("webservicePort", 100));
this.setWebserviceThreads(cfg.getInt("webserviceThreads", 10));
this.setTransactionTimeout(cfg.getInt("transactionTimeout", 10000));
}
示例3: setConfiguration
import org.jpos.core.ConfigurationException; //导入依赖的package包/类
public void setConfiguration(Configuration cfg)
throws ConfigurationException
{
super.setConfiguration(cfg);
this.timeout = cfg.getInt("timeout", 0);
}
示例4: setConfiguration
import org.jpos.core.ConfigurationException; //导入依赖的package包/类
@Override
public void setConfiguration(Configuration cfg) throws ConfigurationException
{
this.prefix = cfg.get("prefix", null);
}
示例5: setConfiguration
import org.jpos.core.ConfigurationException; //导入依赖的package包/类
@Override
public void setConfiguration(Configuration cfg)
throws ConfigurationException {
this.cfg = cfg;
}