org.apache.logging.log4j.core.selector
Interface NamedContextSelector

All Superinterfaces:
ContextSelector
All Known Implementing Classes:
JNDIContextSelector

public interface NamedContextSelector
extends ContextSelector

ContextSelectors that have a name.


Method Summary
 LoggerContext locateContext(String name, String configLocation)
          Locate the LoggerContext with the specified name.
 LoggerContext removeContext(String name)
          Locate the LoggerContext with the specified name using the default configuration.
 
Methods inherited from interface org.apache.logging.log4j.core.selector.ContextSelector
getContext, getLoggerContexts
 

Method Detail

locateContext

LoggerContext locateContext(String name,
                            String configLocation)
Locate the LoggerContext with the specified name.

Parameters:
name - The LoggerContext name.
configLocation - The location of the configuration.
Returns:
A LoggerContext.

removeContext

LoggerContext removeContext(String name)
Locate the LoggerContext with the specified name using the default configuration.

Parameters:
name - The LoggerContext name.
Returns:
A LoggerContext.


Copyright © 1999-2012 Apache Software Foundation. All Rights Reserved.