Class ContextSelectorAdmin
java.lang.Object
org.apache.logging.log4j.core.jmx.ContextSelectorAdmin
- All Implemented Interfaces:
ContextSelectorAdminMBean
Implementation of the
ContextSelectorAdminMBean
interface.-
Field Summary
Fields inherited from interface org.apache.logging.log4j.core.jmx.ContextSelectorAdminMBean
PATTERN
-
Constructor Summary
ConstructorsConstructorDescriptionContextSelectorAdmin
(String contextName, ContextSelector selector) Constructs a newContextSelectorAdmin
. -
Method Summary
Modifier and TypeMethodDescriptionReturns the name of the class implementing theContextSelector
interface.Returns theObjectName
of this mbean.
-
Constructor Details
-
ContextSelectorAdmin
Constructs a newContextSelectorAdmin
.- Parameters:
contextName
- name of the LoggerContext under which to register this ContextSelectorAdmin. Note that the ContextSelector may be registered multiple times, once for each LoggerContext. In web containers, each web application has its own LoggerContext and by associating the ContextSelector with the LoggerContext, all associated MBeans can be unloaded when the web application is undeployed.selector
- the instrumented object
-
-
Method Details
-
getObjectName
Returns theObjectName
of this mbean.- Returns:
- the
ObjectName
- See Also:
-
getImplementationClassName
Description copied from interface:ContextSelectorAdminMBean
Returns the name of the class implementing theContextSelector
interface.- Specified by:
getImplementationClassName
in interfaceContextSelectorAdminMBean
- Returns:
- the name of the
ContextSelector
implementation class.
-