本文整理了Java中org.apache.commons.logging.LogFactory.getProperties()
方法的一些代码示例,展示了LogFactory.getProperties()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。LogFactory.getProperties()
方法的具体详情如下:
包路径:org.apache.commons.logging.LogFactory
类名称:LogFactory
方法名:getProperties
[英]Given a URL that refers to a .properties file, load that file. This is done under an AccessController so that this method will succeed when this jarfile is privileged but the caller is not. This method must therefore remain private to avoid security issues.
Null is returned if the URL cannot be opened.
[中]给定一个URL,该URL引用一个。属性文件,加载该文件。这是在AccessController下完成的,因此当此文件具有特权但调用方没有特权时,此方法将成功。因此,此方法必须保持私有,以避免安全问题。
如果无法打开URL,则返回Null。
代码示例来源:origin: commons-logging/commons-logging
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: robovm/robovm
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: camunda/camunda-bpm-platform
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: org.apache.openjpa/openjpa-all
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: MobiVM/robovm
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: apache-logging/commons-logging
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: Nextdoor/bender
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: ibinti/bugvm
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.apache.commons.logging
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: com.impetus.fabric/fabric-jdbc-driver-shaded
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: com.mobidevelop.robovm/robovm-rt
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: com.gluonhq/robovm-rt
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: com.bugvm/bugvm-rt
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
代码示例来源:origin: FlexoVM/flexovm
URL url = (URL) urls.nextElement();
Properties newProps = getProperties(url);
if (newProps != null) {
if (props == null) {
内容来源于网络,如有侵权,请联系作者删除!