Package ch.qos.logback.classic.selector
Class ContextJNDISelector
- java.lang.Object
-
- ch.qos.logback.classic.selector.ContextJNDISelector
-
- All Implemented Interfaces:
ContextSelector
@Deprecated(since="2022-01-27") public class ContextJNDISelector extends java.lang.Object implements ContextSelector
Deprecated.This internal logback API is not supported by AEM as a Cloud Service.A class that allows the LoggerFactory to access an environment-based LoggerContext. To add in catalina.sh JAVA_OPTS="$JAVA_OPTS "-Dlogback.ContextSelector=JNDI""
-
-
Constructor Summary
Constructors Constructor Description ContextJNDISelector(LoggerContext context)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description LoggerContext
detachLoggerContext(java.lang.String loggerContextName)
Deprecated.java.util.List<java.lang.String>
getContextNames()
Deprecated.int
getCount()
Deprecated.Returns the number of managed contexts Used for testing purposesLoggerContext
getDefaultLoggerContext()
Deprecated.LoggerContext
getLoggerContext()
Deprecated.LoggerContext
getLoggerContext(java.lang.String name)
Deprecated.void
removeLocalContext()
Deprecated.void
setLocalContext(LoggerContext context)
Deprecated.These methods are used by the LoggerContextFilter.
-
-
-
Constructor Detail
-
ContextJNDISelector
public ContextJNDISelector(LoggerContext context)
Deprecated.
-
-
Method Detail
-
getDefaultLoggerContext
public LoggerContext getDefaultLoggerContext()
Deprecated.- Specified by:
getDefaultLoggerContext
in interfaceContextSelector
-
detachLoggerContext
public LoggerContext detachLoggerContext(java.lang.String loggerContextName)
Deprecated.- Specified by:
detachLoggerContext
in interfaceContextSelector
-
getLoggerContext
public LoggerContext getLoggerContext()
Deprecated.- Specified by:
getLoggerContext
in interfaceContextSelector
-
getContextNames
public java.util.List<java.lang.String> getContextNames()
Deprecated.- Specified by:
getContextNames
in interfaceContextSelector
-
getLoggerContext
public LoggerContext getLoggerContext(java.lang.String name)
Deprecated.- Specified by:
getLoggerContext
in interfaceContextSelector
-
getCount
public int getCount()
Deprecated.Returns the number of managed contexts Used for testing purposes- Returns:
- the number of managed contexts
-
setLocalContext
public void setLocalContext(LoggerContext context)
Deprecated.These methods are used by the LoggerContextFilter. They provide a way to tell the selector which context to use, thus saving the cost of a JNDI call at each new request.- Parameters:
context
-
-
removeLocalContext
public void removeLocalContext()
Deprecated.
-
-