Class ContextSelectorAdmin
- java.lang.Object
-
- org.apache.logging.log4j.core.jmx.ContextSelectorAdmin
-
- All Implemented Interfaces:
ContextSelectorAdminMBean
public class ContextSelectorAdmin extends Object implements ContextSelectorAdminMBean
Implementation of theContextSelectorAdminMBean
interface.
-
-
Field Summary
-
Fields inherited from interface org.apache.logging.log4j.core.jmx.ContextSelectorAdminMBean
PATTERN
-
-
Constructor Summary
Constructors Constructor Description ContextSelectorAdmin(String contextName, ContextSelector selector)
Constructs a newContextSelectorAdmin
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getImplementationClassName()
Returns the name of the class implementing theContextSelector
interface.ObjectName
getObjectName()
Returns theObjectName
of this mbean.
-
-
-
Constructor Detail
-
ContextSelectorAdmin
public ContextSelectorAdmin(String contextName, ContextSelector selector)
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 Detail
-
getObjectName
public ObjectName getObjectName()
Returns theObjectName
of this mbean.- Returns:
- the
ObjectName
- See Also:
ContextSelectorAdminMBean.PATTERN
-
getImplementationClassName
public String 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.
-
-