Java 类org.apache.log4j.spi.HierarchyEventListener 实例源码

项目:cacheonix-core    文件:Hierarchy.java   
public
void addHierarchyEventListener(HierarchyEventListener listener) {
  if(listeners.contains(listener)) {
    LogLog.warn("Ignoring attempt to add an existent listener.");
  } else {
    listeners.addElement(listener);
  }
}
项目:cacheonix-core    文件:Category.java   
/**
   *  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);
      }
    }
}
项目:daq-eclipse    文件:Hierarchy.java   
public
void addHierarchyEventListener(HierarchyEventListener listener) {
  if(listeners.contains(listener)) {
    LogLog.warn("Ignoring attempt to add an existent listener.");
  } else {
    listeners.addElement(listener);
  }
}
项目:daq-eclipse    文件:Category.java   
/**
   *  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);
      }
    }
}
项目:nabs    文件:Hierarchy.java   
public
void addHierarchyEventListener(HierarchyEventListener listener) {
  if(listeners.contains(listener)) {
    LogLog.warn("Ignoring attempt to add an existent listener.");
  } else {
    listeners.addElement(listener);
  }
}
项目:hadoop-oss    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:hadoop    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:aliyun-oss-hadoop-fs    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:big-c    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:apex-core    文件:LoggerUtil.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener)
{
  loggerRepository.addHierarchyEventListener(listener);
}
项目:hadoop-2.6.0-cdh5.4.3    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:hadoop-plus    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:hops    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:hadoop-TCP    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:hardfs    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:hadoop-on-lustre2    文件:TestLog4Json.java   
@Override
public void addHierarchyEventListener(HierarchyEventListener listener) {
}
项目:log4j2    文件:LogManager.java   
@Override
public void addHierarchyEventListener(final HierarchyEventListener listener) {

}
项目:logging-log4j2    文件:LogManager.java   
@Override
public void addHierarchyEventListener(final HierarchyEventListener listener) {

}