Class ContextSelectorAdmin
java.lang.Object
org.apache.logging.log4j.core.jmx.ContextSelectorAdmin
- All Implemented Interfaces:
ContextSelectorAdminMBean
Implementation of the
ContextSelectorAdminMBean interface.-
Field Summary
FieldsFields 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 theContextSelectorinterface.Returns theObjectNameof this mbean.
-
Field Details
-
objectName
-
selector
-
-
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 theObjectNameof this mbean.- Returns:
- the
ObjectName - See Also:
-
getImplementationClassName
Description copied from interface:ContextSelectorAdminMBeanReturns the name of the class implementing theContextSelectorinterface.- Specified by:
getImplementationClassNamein interfaceContextSelectorAdminMBean- Returns:
- the name of the
ContextSelectorimplementation class.
-