本文整理了Java中org.apache.commons.logging.LogFactory.getContextClassLoaderInternal()
方法的一些代码示例,展示了LogFactory.getContextClassLoaderInternal()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogFactory.getContextClassLoaderInternal()
方法的具体详情如下:
包路径:org.apache.commons.logging.LogFactory
类名称:LogFactory
方法名:getContextClassLoaderInternal
[英]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
ClassLoader contextClassLoader = getContextClassLoaderInternal();
代码示例来源:origin: camunda/camunda-bpm-platform
ClassLoader contextClassLoader = getContextClassLoaderInternal();
代码示例来源:origin: Nextdoor/bender
ClassLoader contextClassLoader = getContextClassLoaderInternal();
代码示例来源:origin: org.apache.openjpa/openjpa-all
ClassLoader contextClassLoader = getContextClassLoaderInternal();
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
ClassLoader contextClassLoader = getContextClassLoaderInternal();
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging
ClassLoader contextClassLoader = getContextClassLoaderInternal();
内容来源于网络,如有侵权,请联系作者删除!