Top Description Fields Constructors Methods
ch.qos.logback.classic.util

public Class ContextSelectorStaticBinder

extends Object
Class Inheritance
Imports
java.lang.reflect.Constructor, .InvocationTargetException, ch.qos.logback.classic.ClassicConstants, .LoggerContext, ch.qos.logback.classic.selector.ContextJNDISelector, .ContextSelector, .DefaultContextSelector, ch.qos.logback.core.util.Loader, .OptionHelper

Holds the context selector for use in the current environment.
Author
Ceki Gülcü
Since
0.9.19

Field Summary

Modifier and TypeField and Description
pack-priv ContextSelector
pack-priv Object
pack-priv static ContextSelectorStaticBinder

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
pack-priv static ContextSelector

Returns:

an instance of the designated context selector class
dynamicalContextSelector
(LoggerContext defaultLoggerContext, String contextSelectorStr)

Instantiate the context selector class designated by the user.

public ContextSelector
public static ContextSelectorStaticBinder
public void
init(LoggerContext defaultLoggerContext, Object key)

FOR INTERNAL USE.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contextSelectorback to summary
pack-priv ContextSelector contextSelector
keyback to summary
pack-priv Object key
singletonback to summary
pack-priv static ContextSelectorStaticBinder singleton

Constructor Detail

ContextSelectorStaticBinderback to summary
public ContextSelectorStaticBinder()

Method Detail

dynamicalContextSelectorback to summary
pack-priv 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.

Returns:ContextSelector

an instance of the designated context selector class

getContextSelectorback to summary
public ContextSelector getContextSelector()
getSingletonback to summary
public static ContextSelectorStaticBinder getSingleton()
initback to summary
public void init(LoggerContext defaultLoggerContext, Object key) throws ClassNotFoundException, NoSuchMethodException, InstantiationException, IllegalAccessException, InvocationTargetException

FOR INTERNAL USE. This method is intended for use by StaticLoggerBinder.