public class ContextSelectorAdmin extends Object implements ContextSelectorAdminMBean
ContextSelectorAdminMBean interface.PATTERN| Constructor and Description |
|---|
ContextSelectorAdmin(String contextName,
ContextSelector selector)
Constructs a new
ContextSelectorAdmin. |
| Modifier and Type | Method and Description |
|---|---|
String |
getImplementationClassName()
Returns the name of the class implementing the
ContextSelector
interface. |
ObjectName |
getObjectName()
Returns the
ObjectName of this mbean. |
public ContextSelectorAdmin(String contextName, ContextSelector selector)
ContextSelectorAdmin.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 objectpublic ObjectName getObjectName()
ObjectName of this mbean.ObjectNameContextSelectorAdminMBean.PATTERNpublic String getImplementationClassName()
ContextSelectorAdminMBeanContextSelector
interface.getImplementationClassName in interface ContextSelectorAdminMBeanContextSelector implementation class.Copyright © 1999-2021 Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.