Package ch.qos.logback.classic.util
Class ContextSelectorStaticBinder
java.lang.Object
ch.qos.logback.classic.util.ContextSelectorStaticBinder
Holds the context selector for use in the current environment.
- Since:
- 0.9.19
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) ContextSelector
(package private) Object
(package private) static ContextSelectorStaticBinder
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static ContextSelector
dynamicalContextSelector
(LoggerContext defaultLoggerContext, String contextSelectorStr) Instantiate the context selector class designated by the user.static ContextSelectorStaticBinder
void
init
(LoggerContext defaultLoggerContext, Object key) FOR INTERNAL USE.
-
Field Details
-
singleton
-
contextSelector
ContextSelector contextSelector -
key
Object key
-
-
Constructor Details
-
ContextSelectorStaticBinder
public ContextSelectorStaticBinder()
-
-
Method Details
-
getSingleton
-
init
public void init(LoggerContext defaultLoggerContext, Object key) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException FOR INTERNAL USE. This method is intended for use by StaticLoggerBinder.- Parameters:
defaultLoggerContext
-- Throws:
ClassNotFoundException
NoSuchMethodException
InstantiationException
IllegalAccessException
InvocationTargetException
-
dynamicalContextSelector
static ContextSelector dynamicalContextSelector(LoggerContext defaultLoggerContext, String contextSelectorStr) throws ClassNotFoundException, SecurityException, NoSuchMethodException, IllegalArgumentException, InstantiationException, IllegalAccessException, InvocationTargetException Instantiate the context selector class designated by the user. The selector must have a constructor taking a LoggerContext instance as an argument.- Parameters:
defaultLoggerContext
-contextSelectorStr
-- Returns:
- an instance of the designated context selector class
- Throws:
ClassNotFoundException
SecurityException
NoSuchMethodException
IllegalArgumentException
InstantiationException
IllegalAccessException
InvocationTargetException
-
getContextSelector
-