Log4j 1.3alpha-8

org.apache.log4j.spi
Interface RepositorySelectorEx

All Superinterfaces:
RepositorySelector
All Known Implementing Classes:
DefaultRepositorySelector

public interface RepositorySelectorEx
extends RepositorySelector

The LogManager uses one (and only one) RepositorySelector implementation to select the LoggerRepository for a particular application context.

It is the responsability 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.3
Author:
Ceki Gülcü

Method Summary
 LoggerRepository detachRepository(String name)
          Remove the repository with the given name from the list maintained by the respository selector.
 
Methods inherited from interface org.apache.log4j.spi.RepositorySelector
getLoggerRepository
 

Method Detail

detachRepository

public LoggerRepository detachRepository(String name)
Remove the repository with the given name from the list maintained by the respository selector.

When applications are stopped or recycled, this method should be called to ensure that the associated repository is recycled as well. After the repository is detached from this selector, the returned value, i.e. the detached repository, can be used to shutdown the repository.

If more than one application share the same logging context, then the applications need to coordinate their actions.

Returns:
The LoggerRepository instance that was detached.
Since:
1.3

Log4j 1.3alpha-8

Copyright © 2000-2006 Apache Software Foundation.
Licensed under the Apache License, Version 2.0.