Package org.apache.log4j.spi
Interface RepositorySelector
-
public interface RepositorySelector
TheLogManager
uses one (and only one)RepositorySelector
implementation to select theLoggerRepository
for a particular application context.It is the responsibility of the
RepositorySelector
implementation to track the application context. Log4j makes no assumptions about the application context or on its management.See also
LogManager
.- Since:
- 1.2
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoggerRepository
getLoggerRepository()
Returns aLoggerRepository
depending on the context.
-
-
-
Method Detail
-
getLoggerRepository
LoggerRepository getLoggerRepository()
Returns aLoggerRepository
depending on the context. Implementers must make sure that a valid (non-null) LoggerRepository is returned.- Returns:
- a LoggerRepository.
-
-