0

I have a spring project where I have my custom mbeans(defined by user) and mbeans provided by jars. If I don't have to expose few operations of custom mbeans, I can put the mathod name values in assembler under properties : ignoredMethods. My question is : If i don't have to expose the method of a third party jar mbean which is already exposed, what should I do?

4

1 回答 1

0

如果第三方 jar 自己在内部向 MBeanServer 注册 MBean,则您无法控制。如果您使用 Spring 公开 MBean,那么您可以控制公开的内容。

编辑:

如果您使用<context:mbean-export/>,它会创建一个AnnotationMBeanExporter默认情况下会自动检测匹配 MBean 命名规则的类。

<bean/>您可以通过将导出器声明为 a并将其设置autoDectedMode为 0 或autoDetectModeName来关闭它AUTODETECT_NONE

于 2014-06-25T12:31:30.947 回答