gpt4 book ai didi

com.asakusafw.yaess.core.YaessProfile.load()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-20 13:40:31 25 4
gpt4 key购买 nike

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

YaessProfile.load介绍

[英]Loads a YAESS profile from the specified properties.
[中]从指定的属性加载YAESS配置文件。

代码示例

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

/**
 * Loads a YAESS profile from the specified properties.
 * @param properties source properties
 * @param classLoader the class loader to load the service class
 * @return the loaded profile
 * @throws IllegalArgumentException if the target profile is invalid, or parameters contain {@code null}
 * @deprecated use {@link #load(Properties, ProfileContext)} instead
 */
@Deprecated
public static YaessProfile load(Properties properties, ClassLoader classLoader) {
  if (properties == null) {
    throw new IllegalArgumentException("properties must not be null"); //$NON-NLS-1$
  }
  if (classLoader == null) {
    throw new IllegalArgumentException("classLoader must not be null"); //$NON-NLS-1$
  }
  return load(properties, ProfileContext.system(classLoader));
}

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

result.context = new ProfileContext(loader, new VariableResolver(env));
  Properties properties = CommandLineUtil.loadProperties(file);
  result.profile = YaessProfile.load(properties, result.context);
} catch (Exception e) {
  YSLOG.error(e, "E01001", file.getPath());

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