1 /* 2 * Copyright 1999-2005 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 18 19 package org.apache.log4j.spi; 20 21 22 /** 23 24 The <code>LogManager</code> uses one (and only one) 25 <code>RepositorySelector</code> implementation to select the 26 {@link LoggerRepository} for a particular application context. 27 28 <p>It is the responsability of the <code>RepositorySelector</code> 29 implementation to track the application context. Log4j makes no 30 assumptions about the application context or on its management. 31 32 <p>See also {@link org.apache.log4j.LogManager LogManager}. 33 34 @author Ceki Gülcü 35 @since 1.2 36 37 */ 38 public interface RepositorySelector { 39 40 /** 41 Returns a {@link LoggerRepository} depending on the 42 context. Implementors must make sure that a valid (non-null) 43 LoggerRepository is returned. 44 */ 45 public 46 LoggerRepository getLoggerRepository(); 47 } 48 49