站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBOSS Portal 2.6 API 英文版文档

LoaderRepositorySelector - JBOSS Portal 2.6 API 英文版文档


org.jboss.portal.common.logging
Class LoaderRepositorySelector

java.lang.Object
  extended byorg.jboss.portal.common.logging.LoaderRepositorySelector
All Implemented Interfaces:
org.apache.log4j.spi.RepositorySelector

public class LoaderRepositorySelector
extends java.lang.Object
implements org.apache.log4j.spi.RepositorySelector

Version:
$Revision: 5451 $
Author:
Stan Silvert, Julien Viet

Field Summary
private static org.apache.log4j.spi.LoggerRepository defaultRepository
           
private static java.lang.Object guard
           
private static boolean initialized
           
private static org.apache.log4j.Logger log
           
private static java.util.Map repositories
           
 
Constructor Summary
private LoaderRepositorySelector()
           
 
Method Summary
 org.apache.log4j.spi.LoggerRepository getLoggerRepository()
           
static void register(java.lang.ClassLoader classloader, Loader loader, java.lang.String pathToLog4jFile)
          Register with this repository selector.
static void unregister(java.lang.ClassLoader classloader)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

initialized

private static boolean initialized

guard

private static java.lang.Object guard

repositories

private static java.util.Map repositories

defaultRepository

private static org.apache.log4j.spi.LoggerRepository defaultRepository

log

private static org.apache.log4j.Logger log
Constructor Detail

LoaderRepositorySelector

private LoaderRepositorySelector()
Method Detail

register

public static void register(java.lang.ClassLoader classloader,
                            Loader loader,
                            java.lang.String pathToLog4jFile)
Register with this repository selector.


unregister

public static void unregister(java.lang.ClassLoader classloader)

getLoggerRepository

public org.apache.log4j.spi.LoggerRepository getLoggerRepository()
Specified by:
getLoggerRepository in interface org.apache.log4j.spi.RepositorySelector