1 /** 2 * Logback: the reliable, generic, fast and flexible logging framework. 3 * 4 * Copyright (C) 1999-2006, QOS.ch 5 * 6 * This library is free software, you can redistribute it and/or modify it under 7 * the terms of the GNU Lesser General Public License as published by the Free 8 * Software Foundation. 9 */ 10 package ch.qos.logback.classic.selector; 11 12 import java.util.List; 13 14 import ch.qos.logback.classic.LoggerContext; 15 16 /** 17 * An interface that provides access to different contexts. 18 * 19 * It is used by the LoggerFactory to access the context 20 * it will use to retrieve loggers. 21 * 22 * @author Ceki Gülcü 23 * @author Sébastien Pennec 24 */ 25 public interface ContextSelector { 26 27 public LoggerContext getLoggerContext(); 28 29 public LoggerContext getLoggerContext(String name); 30 31 public LoggerContext getDefaultLoggerContext(); 32 33 public LoggerContext detachLoggerContext(String loggerContextName); 34 35 public List<String> getContextNames(); 36 }