类 MethodExclusionMBeanInfoAssembler

    • 方法详细资料

      • setIgnoredMethods

        public void setIgnoredMethods​(String... ignoredMethodNames)
        Set the array of method names to be ignored when creating the management info.

        These method names will be used for a bean if no entry corresponding to that bean is found in the ignoredMethodsMappings property.

        另请参阅:
        setIgnoredMethodMappings(java.util.Properties)
      • setIgnoredMethodMappings

        public void setIgnoredMethodMappings​(Properties mappings)
        Set the mappings of bean keys to a comma-separated list of method names.

        These method names are ignored when creating the management interface.

        The property key must match the bean key and the property value must match the list of method names. When searching for method names to ignore for a bean, Spring will check these mappings first.

      • isNotIgnored

        protected boolean isNotIgnored​(Method method,
                                       String beanKey)
        Determine whether the given method is supposed to be included, that is, not configured as to be ignored.
        参数:
        method - the operation method
        beanKey - the key associated with the MBean in the beans map of the MBeanExporter