public class MixinRequiredModelMBean extends RequiredModelMBean
RequiredModelMBean
which allows us to intercept invoking operations on the
MBean.
This allows us to intercept calls to custom mbeans where allows us to mix-in the standard set of mbean attributes and
operations that Camel provides out of the box.
For example if mask has been enabled on JMX, then we use this implementation to hide sensitive information from the
returned JMX attributes / operations.Constructor and Description |
---|
MixinRequiredModelMBean() |
MixinRequiredModelMBean(ModelMBeanInfo mbi,
boolean mask,
ModelMBeanInfo defaultMbi,
DynamicMBean defaultObject) |
Modifier and Type | Method and Description |
---|---|
Object |
invoke(String opName,
Object[] opArgs,
String[] sig) |
protected boolean |
isDefaultOperation(String opName) |
boolean |
isMask() |
protected boolean |
isMaskOperation(String opName) |
protected String |
mask(String opName,
String value)
Masks the returned value from invoking the operation
|
addAttributeChangeNotificationListener, addNotificationListener, getAttribute, getAttributes, getClassLoaderRepository, getMBeanInfo, getNotificationInfo, load, postDeregister, postRegister, preDeregister, preRegister, removeAttributeChangeNotificationListener, removeNotificationListener, removeNotificationListener, sendAttributeChangeNotification, sendAttributeChangeNotification, sendNotification, sendNotification, setAttribute, setAttributes, setManagedResource, setModelMBeanInfo, store
public MixinRequiredModelMBean() throws MBeanException, RuntimeOperationsException
public MixinRequiredModelMBean(ModelMBeanInfo mbi, boolean mask, ModelMBeanInfo defaultMbi, DynamicMBean defaultObject) throws MBeanException, RuntimeOperationsException
public boolean isMask()
public Object invoke(String opName, Object[] opArgs, String[] sig) throws MBeanException, ReflectionException
invoke
in interface DynamicMBean
invoke
in class RequiredModelMBean
MBeanException
ReflectionException
protected boolean isDefaultOperation(String opName)
protected boolean isMaskOperation(String opName)
Apache Camel