com.typesafe.config.Config.origin()方法的使用及代码示例

x33g5p2x  于2022-01-18 转载在 其他  
字(1.5k)|赞(0)|评价(0)|浏览(178)

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

Config.origin介绍

[英]Gets the origin of the Config, which may be a file, or a file with a line number, or just a descriptive phrase.
[中]获取配置的来源,它可能是一个文件,或者是一个带有行号的文件,或者只是一个描述性短语。

代码示例

代码示例来源:origin: apache/drill

@Override
public ConfigOrigin origin() {
 return c.origin();
}

代码示例来源:origin: jooby-project/jooby

public void printConf(final Logger log, final Config conf) {
 if (log.isDebugEnabled()) {
  String desc = configTree(conf.origin().description());
  log.debug("config tree:\n{}", desc);
 }
}

代码示例来源:origin: jooby-project/jooby

String name = Optional.ofNullable(this.confname).orElse(source.origin().resource());
Config result = ConfigFactory.empty();
if (name != null) {

代码示例来源:origin: dremio/dremio-oss

@Override
public ConfigOrigin origin() {
 return config.origin();
}

代码示例来源:origin: org.apache.drill/drill-common

@Override
public ConfigOrigin origin() {
 return c.origin();
}

代码示例来源:origin: org.jooby/jooby

public void printConf(final Logger log, final Config conf) {
 if (log.isDebugEnabled()) {
  String desc = configTree(conf.origin().description());
  log.debug("config tree:\n{}", desc);
 }
}

代码示例来源:origin: org.jooby/jooby

String name = Optional.ofNullable(this.confname).orElse(source.origin().resource());
Config result = ConfigFactory.empty();
if (name != null) {

代码示例来源:origin: com.scireum/sirius-kernel

prioA = a.origin().lineNumber();
prioB = b.origin().lineNumber();

相关文章