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

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

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

LogFactory.getSystemProperty介绍

[英]Read the specified system property, using an AccessController so that the property can be read if JCL has been granted the appropriate security rights even if the calling code has not.

Take care not to expose the value returned by this method to the calling application in any way; otherwise the calling app can use that info to access data that should not be available to it.
[中]使用AccessController读取指定的系统属性,以便在JCL已被授予适当的安全权限(即使调用代码未被授予)的情况下也可以读取该属性。
注意不要以任何方式将此方法返回的值公开给调用应用程序;否则,呼叫应用程序可以使用该信息访问不应提供给它的数据。

代码示例

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

String dest;
try {
  dest = getSystemProperty(DIAGNOSTICS_DEST_PROPERTY, null);
  if (dest == null) {
    return null;

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

String storeImplementationClass;
try {
  storeImplementationClass = getSystemProperty(HASHTABLE_IMPLEMENTATION_PROPERTY, null);
} catch (SecurityException ex) {

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

String factoryClass = getSystemProperty(FACTORY_PROPERTY, null);
if (factoryClass != null) {
  if (isDiagnosticsEnabled()) {

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

String dest;
try {
  dest = getSystemProperty(DIAGNOSTICS_DEST_PROPERTY, null);
  if (dest == null) {
    return;

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

String storeImplementationClass;
try {
  storeImplementationClass = getSystemProperty(HASHTABLE_IMPLEMENTATION_PROPERTY, null);
} catch(SecurityException ex) {

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

String factoryClass = getSystemProperty(FACTORY_PROPERTY, null);
if (factoryClass != null) {
  if (isDiagnosticsEnabled()) {

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

String dest;
try {
  dest = getSystemProperty(DIAGNOSTICS_DEST_PROPERTY, null);
  if (dest == null) {
    return null;

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

String dest;
try {
  dest = getSystemProperty(DIAGNOSTICS_DEST_PROPERTY, null);
  if (dest == null) {
    return null;

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

String dest;
try {
  dest = getSystemProperty(DIAGNOSTICS_DEST_PROPERTY, null);
  if (dest == null) {
    return null;

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

String dest;
try {
  dest = getSystemProperty(DIAGNOSTICS_DEST_PROPERTY, null);
  if (dest == null) {
    return;

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

String storeImplementationClass;
try {
  storeImplementationClass = getSystemProperty(HASHTABLE_IMPLEMENTATION_PROPERTY, null);
} catch(SecurityException ex) {

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

String storeImplementationClass;
try {
  storeImplementationClass = getSystemProperty(HASHTABLE_IMPLEMENTATION_PROPERTY, null);
} catch (SecurityException ex) {

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

String storeImplementationClass;
try {
  storeImplementationClass = getSystemProperty(HASHTABLE_IMPLEMENTATION_PROPERTY, null);
} catch (SecurityException ex) {

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

String storeImplementationClass;
try {
  storeImplementationClass = getSystemProperty(HASHTABLE_IMPLEMENTATION_PROPERTY, null);
} catch (SecurityException ex) {

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

String factoryClass = getSystemProperty(FACTORY_PROPERTY, null);
if (factoryClass != null) {
  if (isDiagnosticsEnabled()) {

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

String factoryClass = getSystemProperty(FACTORY_PROPERTY, null);
if (factoryClass != null) {
  if (isDiagnosticsEnabled()) {

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

String factoryClass = getSystemProperty(FACTORY_PROPERTY, null);
if (factoryClass != null) {
  if (isDiagnosticsEnabled()) {

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

String factoryClass = getSystemProperty(FACTORY_PROPERTY, null);
if (factoryClass != null) {
  if (isDiagnosticsEnabled()) {

相关文章