public class ContextSelectorAdmin extends java.lang.Object implements ContextSelectorAdminMBean
ContextSelectorAdminMBean
interface.Modifier and Type | Field and Description |
---|---|
private javax.management.ObjectName |
objectName |
private ContextSelector |
selector |
PATTERN
Constructor and Description |
---|
ContextSelectorAdmin(java.lang.String contextName,
ContextSelector selector)
Constructs a new
ContextSelectorAdmin . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getImplementationClassName()
Returns the name of the class implementing the
ContextSelector
interface. |
javax.management.ObjectName |
getObjectName()
Returns the
ObjectName of this mbean. |
private final javax.management.ObjectName objectName
private final ContextSelector selector
public ContextSelectorAdmin(java.lang.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 javax.management.ObjectName getObjectName()
ObjectName
of this mbean.ObjectName
ContextSelectorAdminMBean.PATTERN
public java.lang.String getImplementationClassName()
ContextSelectorAdminMBean
ContextSelector
interface.getImplementationClassName
in interface ContextSelectorAdminMBean
ContextSelector
implementation class.