public class AbstractHandlerMBean extends ObjectMBean
| Modifier and Type | Field and Description |
|---|---|
private static Logger |
LOG |
_managed| Constructor and Description |
|---|
AbstractHandlerMBean(java.lang.Object managedObject) |
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getContextName(ContextHandler context) |
java.lang.String |
getObjectContextBasis()
Allows to customize the ObjectName property
context. |
getAttribute, getAttributes, getManagedObject, getMBeanContainer, getMBeanInfo, getObjectName, getObjectNameBasis, invoke, isAnnotationPresent, mbeanFor, setAttribute, setAttributes, setMBeanContainer, toVariableNameprivate static final Logger LOG
public java.lang.String getObjectContextBasis()
ObjectMBeanAllows to customize the ObjectName property context.
When MBeanContainer creates default ObjectNames, the context property
is "inherited" recursively by MBeans that are children of this MBean; this allows to
"group" descendant MBeans so that it is clear who is the ancestor they belong to.
For example, if object A has a child component B which has children components C, then AMBean can override this method to return "alpha", and then the ObjectNames will be:
getObjectContextBasis in class ObjectMBeancontextprotected java.lang.String getContextName(ContextHandler context)