org.apache.log4j.Hierarchy.fireRemoveAppenderEvent()方法的使用及代码示例

x33g5p2x  于2022-01-20 转载在 其他  
字(7.4k)|赞(0)|评价(0)|浏览(118)

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

Hierarchy.fireRemoveAppenderEvent介绍

暂无

代码示例

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

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

代码示例来源:origin: apache/log4j

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

代码示例来源:origin: org.ops4j.pax.logging/pax-logging-service

/**
 Requests that a appender removed event be sent to any registered
 {@link LoggerEventListener}.
 @param logger The logger from which the appender was removed.
 @param appender The appender removed from the logger.
 */
public void fireRemoveAppenderEvent(final Category logger,
                  final Appender appender) {
  if (repo instanceof Hierarchy) {
    ((Hierarchy) repo).fireRemoveAppenderEvent(logger, appender);
  }
}

代码示例来源:origin: ops4j/org.ops4j.pax.logging

/**
 Requests that a appender removed event be sent to any registered
 {@link LoggerEventListener}.
 @param logger The logger from which the appender was removed.
 @param appender The appender removed from the logger.
 */
public void fireRemoveAppenderEvent(final Category logger,
                  final Appender appender) {
  if (repo instanceof Hierarchy) {
    ((Hierarchy) repo).fireRemoveAppenderEvent(logger, appender);
  }
}

代码示例来源:origin: org.jboss.logmanager/log4j-jboss-logmanager

private void fireRemoveAppenderEvent(final LoggerRepository repository, final Appender appender) {
  if (appender != null) {
    if (repository instanceof Hierarchy) {
      ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
    } else if (repository instanceof HierarchyEventListener) {
      ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
    }
  }
}

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

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

代码示例来源:origin: org.ops4j.pax.logging/pax-logging-service

/**
 * LoggerRepository forgot the fireRemoveAppenderEvent method, if using the stock Hierarchy implementation, then call its fireRemove.
 * Custom repositories can implement HierarchyEventListener if they want remove notifications.
 * 
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
    if (repository instanceof Hierarchy) {
      ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
    } else if (repository instanceof HierarchyEventListener) {
      ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
    }
  }
}

代码示例来源:origin: apache-log4j/log4j

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

代码示例来源:origin: ops4j/org.ops4j.pax.logging

/**
 * LoggerRepository forgot the fireRemoveAppenderEvent method, if using the stock Hierarchy implementation, then call its fireRemove.
 * Custom repositories can implement HierarchyEventListener if they want remove notifications.
 * 
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
    if (repository instanceof Hierarchy) {
      ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
    } else if (repository instanceof HierarchyEventListener) {
      ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
    }
  }
}

代码示例来源:origin: org.apache/log4j

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

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

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

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

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

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

/**
 *  LoggerRepository forgot the fireRemoveAppenderEvent method,
 *     if using the stock Hierarchy implementation, then call its fireRemove.
 *     Custom repositories can implement HierarchyEventListener if they
 *     want remove notifications.
 * @param appender appender, may be null.
 */
private void fireRemoveAppenderEvent(final Appender appender) {
  if (appender != null) {
   if (repository instanceof Hierarchy) {
    ((Hierarchy) repository).fireRemoveAppenderEvent(this, appender);
   } else if (repository instanceof HierarchyEventListener) {
     ((HierarchyEventListener) repository).removeAppenderEvent(this, appender);
   }
  }
}

相关文章