org.apache.commons.logging.LogFactory.getContextClassLoader()方法的使用及代码示例

x33g5p2x  于2022-01-23 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(99)

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

LogFactory.getContextClassLoader介绍

[英]Calls LogFactory.directGetContextClassLoader under the control of an AccessController class. This means that java code running under a security manager that forbids access to ClassLoaders will still work if this class is given appropriate privileges, even when the caller doesn't have such privileges. Without using an AccessController, the the entire call stack must have the privilege before the call is allowed.
[中]打电话给LogFactory。AccessController类控制下的directGetContextClassLoader。这意味着在安全管理器下运行的java代码禁止访问类加载器,如果该类被赋予适当的权限,即使调用方没有这样的权限,该代码仍然可以工作。在不使用AccessController的情况下,在允许调用之前,整个调用堆栈必须具有该权限。

代码示例

代码示例来源:origin: commons-logging/commons-logging

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

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

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: camunda/camunda-bpm-platform

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

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

ClassLoader contextClassLoader = getContextClassLoader();

代码示例来源:origin: MobiVM/robovm

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

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

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: FlexoVM/flexovm

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: com.gluonhq/robovm-rt

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: apache-logging/commons-logging

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: com.bugvm/bugvm-rt

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: ibinti/bugvm

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: Nextdoor/bender

/**
 * Gets the context classloader.
 * This method is a workaround for a java 1.2 compiler bug.
 * @since 1.1
 */
protected static ClassLoader getContextClassLoader() throws LogConfigurationException {
  return LogFactory.getContextClassLoader();
}

代码示例来源:origin: com.bugvm/bugvm-rt

ClassLoader contextClassLoader = getContextClassLoader();

代码示例来源:origin: ibinti/bugvm

ClassLoader contextClassLoader = getContextClassLoader();

代码示例来源:origin: MobiVM/robovm

ClassLoader contextClassLoader = getContextClassLoader();

代码示例来源:origin: com.mobidevelop.robovm/robovm-rt

ClassLoader contextClassLoader = getContextClassLoader();

代码示例来源:origin: apache-logging/commons-logging

ClassLoader contextClassLoader = getContextClassLoader();

相关文章