Class ContextSelectorAdmin
- java.lang.Object
-
- org.apache.logging.log4j.core.jmx.ContextSelectorAdmin
-
- All Implemented Interfaces:
ContextSelectorAdminMBean
public class ContextSelectorAdmin extends java.lang.Object implements ContextSelectorAdminMBean
Implementation of theContextSelectorAdminMBeaninterface.
-
-
Field Summary
Fields Modifier and Type Field Description private javax.management.ObjectNameobjectNameprivate ContextSelectorselector-
Fields inherited from interface org.apache.logging.log4j.core.jmx.ContextSelectorAdminMBean
PATTERN
-
-
Constructor Summary
Constructors Constructor Description ContextSelectorAdmin(java.lang.String contextName, ContextSelector selector)Constructs a newContextSelectorAdmin.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetImplementationClassName()Returns the name of the class implementing theContextSelectorinterface.javax.management.ObjectNamegetObjectName()Returns theObjectNameof this mbean.
-
-
-
Field Detail
-
objectName
private final javax.management.ObjectName objectName
-
selector
private final ContextSelector selector
-
-
Constructor Detail
-
ContextSelectorAdmin
public ContextSelectorAdmin(java.lang.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 javax.management.ObjectName getObjectName()
Returns theObjectNameof this mbean.- Returns:
- the
ObjectName - See Also:
ContextSelectorAdminMBean.PATTERN
-
getImplementationClassName
public java.lang.String getImplementationClassName()
Description copied from interface:ContextSelectorAdminMBeanReturns the name of the class implementing theContextSelectorinterface.- Specified by:
getImplementationClassNamein interfaceContextSelectorAdminMBean- Returns:
- the name of the
ContextSelectorimplementation class.
-
-