gpt4 book ai didi

org.apache.openjpa.lib.meta.XMLMetaDataParser.currentClassLoader()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-26 17:25:05 28 4
gpt4 key购买 nike

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

XMLMetaDataParser.currentClassLoader介绍

[英]Return the class loader to use when resolving resources and loading classes.
[中]返回解析资源和加载类时要使用的类加载器。

代码示例

代码示例来源:origin: org.apache.openjpa/openjpa-lib

/**
 * Return true if the given source is parsed. Otherwise, record that
 * it will be parsed.
 */
protected boolean parsed(String src) {
  if (!_caching)
    return false;
  if (_parsed == null)
    _parsed = new HashMap<ClassLoader, Set<String>>();
  ClassLoader loader = currentClassLoader();
  Set<String> set = _parsed.get(loader);
  if (set == null) {
    set = new HashSet<String>();
    _parsed.put(loader, set);
  }
  boolean added = set.add(src);
  if (!added && _log != null && _log.isTraceEnabled())
    _log.trace(_loc.get("already-parsed", src));
  return !added;
}

代码示例来源:origin: org.apache.openejb.patch/openjpa

/**
 * Return true if the given source is parsed. Otherwise, record that
 * it will be parsed.
 */
protected boolean parsed(String src) {
  if (!_caching)
    return false;
  if (_parsed == null)
    _parsed = new HashMap<ClassLoader, Set<String>>();
  ClassLoader loader = currentClassLoader();
  Set<String> set = _parsed.get(loader);
  if (set == null) {
    set = new HashSet<String>();
    _parsed.put(loader, set);
  }
  boolean added = set.add(src);
  if (!added && _log != null && _log.isTraceEnabled())
    _log.trace(_loc.get("already-parsed", src));
  return !added;
}

代码示例来源:origin: org.apache.openjpa/openjpa-all

/**
 * Return true if the given source is parsed. Otherwise, record that
 * it will be parsed.
 */
protected boolean parsed(String src) {
  if (!_caching)
    return false;
  if (_parsed == null)
    _parsed = new HashMap<ClassLoader, Set<String>>();
  ClassLoader loader = currentClassLoader();
  Set<String> set = _parsed.get(loader);
  if (set == null) {
    set = new HashSet<String>();
    _parsed.put(loader, set);
  }
  boolean added = set.add(src);
  if (!added && _log != null && _log.isTraceEnabled())
    _log.trace(_loc.get("already-parsed", src));
  return !added;
}

代码示例来源:origin: org.apache.openjpa/com.springsource.org.apache.openjpa

/**
 * Return true if the given source is parsed. Otherwise, record that
 * it will be parsed.
 */
protected boolean parsed(String src) {
  if (!_caching)
    return false;
  if (_parsed == null)
    _parsed = new HashMap();
  ClassLoader loader = currentClassLoader();
  Set set = (Set) _parsed.get(loader);
  if (set == null) {
    set = new HashSet();
    _parsed.put(loader, set);
  }
  boolean added = set.add(src);
  if (!added && _log != null && _log.isTraceEnabled())
    _log.trace(_loc.get("already-parsed", src));
  return !added;
}

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