org.slf4j.LoggerFactory.performInitialization()方法的使用及代码示例

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

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

LoggerFactory.performInitialization介绍

暂无

代码示例

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

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

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

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

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

/**
  * Return the {@link ILoggerFactory} instance in use.
  * <p/>
  * <p/>
  * ILoggerFactory instance is bound with this class at compile time.
  *
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITIALIZATION;
   performInitialization();
  }
  switch (INITIALIZATION_STATE) {
   case SUCCESSFUL_INITIALIZATION:
    return StaticLoggerBinder.getSingleton().getLoggerFactory();
   case NOP_FALLBACK_INITIALIZATION:
    return NOP_FALLBACK_FACTORY;
   case FAILED_INITIALIZATION:
    throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
   case ONGOING_INITIALIZATION:
    // support re-entrant behavior.
    // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
    return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

代码示例来源:origin: org.gandon.tomcat/juli-to-slf4j

/**
   * Return the {@link ILoggerFactory} instance in use.
   * <p>
   * ILoggerFactory instance is bound with this class at compile time.
   *
   * @return the ILoggerFactory instance in use
   */
  public static ILoggerFactory getILoggerFactory() {
    if (INITIALIZATION_STATE == UNINITIALIZED) {
      INITIALIZATION_STATE = ONGOING_INITIALIZATION;
      performInitialization();
    }
    switch (INITIALIZATION_STATE) {
    case SUCCESSFUL_INITIALIZATION:
      return getLoggerFactory();
    case NOP_FALLBACK_INITIALIZATION:
      return NOP_FALLBACK_FACTORY;
    case FAILED_INITIALIZATION:
      throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
    case ONGOING_INITIALIZATION:
      // support re-entrant behavior.
      // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
      return TEMP_FACTORY;
    }
    throw new IllegalStateException("Unreachable code");
  }
}

代码示例来源:origin: com.alibaba.citrus.tool/antx-autoexpand

/**
  * Return the {@link ILoggerFactory} instance in use.
  * 
  * <p>
  * ILoggerFactory instance is bound with this class at compile time.
  * 
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITILIZATION;
   performInitialization();

  }
  switch (INITIALIZATION_STATE) {
  case SUCCESSFUL_INITILIZATION:
   return getSingleton().getLoggerFactory();
  case FAILED_INITILIZATION:
   throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
  case ONGOING_INITILIZATION:
   // support re-entrant behavior.
   // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
   return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

代码示例来源:origin: com.github.oshi/oshi-core-shaded

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

代码示例来源:origin: io.virtdata/virtdata-lib-realer

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

代码示例来源:origin: wolpi/prim-ftpd

/**
  * Return the {@link ILoggerFactory} instance in use.
  *
  * <p>
  * ILoggerFactory instance is bound with this class at compile time.
  *
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITILIZATION;
   performInitialization();

  }
  switch (INITIALIZATION_STATE) {
  case SUCCESSFUL_INITILIZATION:
   return PrimFtpdLoggerBinder.getSingleton().getLoggerFactory();
  case NOP_FALLBACK_INITILIZATION:
   return NOP_FALLBACK_FACTORY;
  case FAILED_INITILIZATION:
   throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
  case ONGOING_INITILIZATION:
   // support re-entrant behavior.
   // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
   return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

代码示例来源:origin: org.jboss.eap/wildfly-client-all

if (INITIALIZATION_STATE == UNINITIALIZED) {
 INITIALIZATION_STATE = ONGOING_INITIALIZATION;
 performInitialization();

代码示例来源:origin: org.apache.directory.api/api-ldap-client-all

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.slf4j.api

/**
  * Return the {@link ILoggerFactory} instance in use.
  * <p/>
  * <p/>
  * ILoggerFactory instance is bound with this class at compile time.
  *
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITIALIZATION;
   performInitialization();
  }
  switch (INITIALIZATION_STATE) {
   case SUCCESSFUL_INITIALIZATION:
    return StaticLoggerBinder.getSingleton().getLoggerFactory();
   case NOP_FALLBACK_INITIALIZATION:
    return NOP_FALLBACK_FACTORY;
   case FAILED_INITIALIZATION:
    throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
   case ONGOING_INITIALIZATION:
    // support re-entrant behavior.
    // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
    return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby

/**
  * Return the {@link ILoggerFactory} instance in use.
  * <p/>
  * <p/>
  * ILoggerFactory instance is bound with this class at compile time.
  *
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITIALIZATION;
   performInitialization();
  }
  switch (INITIALIZATION_STATE) {
   case SUCCESSFUL_INITIALIZATION:
    return StaticLoggerBinder.getSingleton().getLoggerFactory();
   case NOP_FALLBACK_INITIALIZATION:
    return NOP_FALLBACK_FACTORY;
   case FAILED_INITIALIZATION:
    throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
   case ONGOING_INITIALIZATION:
    // support re-entrant behavior.
    // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
    return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby

/**
  * Return the {@link ILoggerFactory} instance in use.
  * <p/>
  * <p/>
  * ILoggerFactory instance is bound with this class at compile time.
  *
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITIALIZATION;
   performInitialization();
  }
  switch (INITIALIZATION_STATE) {
   case SUCCESSFUL_INITIALIZATION:
    return StaticLoggerBinder.getSingleton().getLoggerFactory();
   case NOP_FALLBACK_INITIALIZATION:
    return NOP_FALLBACK_FACTORY;
   case FAILED_INITIALIZATION:
    throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
   case ONGOING_INITIALIZATION:
    // support re-entrant behavior.
    // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
    return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-analytics

/**
  * Return the {@link ILoggerFactory} instance in use.
  * <p/>
  * <p/>
  * ILoggerFactory instance is bound with this class at compile time.
  *
  * @return the ILoggerFactory instance in use
  */
 public static ILoggerFactory getILoggerFactory() {
  if (INITIALIZATION_STATE == UNINITIALIZED) {
   INITIALIZATION_STATE = ONGOING_INITIALIZATION;
   performInitialization();
  }
  switch (INITIALIZATION_STATE) {
   case SUCCESSFUL_INITIALIZATION:
    return StaticLoggerBinder.getSingleton().getLoggerFactory();
   case NOP_FALLBACK_INITIALIZATION:
    return NOP_FALLBACK_FACTORY;
   case FAILED_INITIALIZATION:
    throw new IllegalStateException(UNSUCCESSFUL_INIT_MSG);
   case ONGOING_INITIALIZATION:
    // support re-entrant behavior.
    // See also http://bugzilla.slf4j.org/show_bug.cgi?id=106
    return TEMP_FACTORY;
  }
  throw new IllegalStateException("Unreachable code");
 }
}

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

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

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

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

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

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

代码示例来源:origin: org.kill-bill.billing/killbill-platform-osgi-bundles-logger

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

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

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

代码示例来源:origin: uk.co.nichesolutions/slf4j-api

if (INITIALIZATION_STATE == UNINITIALIZED) {
  INITIALIZATION_STATE = ONGOING_INITIALIZATION;
  performInitialization();

相关文章