Interface DynamicMBeanFactory

All Known Implementing Classes:
AbstractDynamicMBeanFactory, EndpointMBeanFactory

public interface DynamicMBeanFactory
Contract for creating dynamic management beans from a bean definition.
Since:
1.0
Author:
James Kleeh
  • Method Summary

    Modifier and Type
    Method
    Description
    createMBean(io.micronaut.inject.BeanDefinition beanDefinition, Collection<io.micronaut.inject.ExecutableMethod> methods, Supplier<Object> instanceSupplier)
    Creates a dynamic management bean from the provided bean definition and methods.
    default Object
    createMBean(io.micronaut.inject.BeanDefinition beanDefinition, Supplier<Object> instanceSupplier)
    Creates a dynamic management bean from the provided bean definition.
  • Method Details

    • createMBean

      default Object createMBean(io.micronaut.inject.BeanDefinition beanDefinition, Supplier<Object> instanceSupplier)
      Creates a dynamic management bean from the provided bean definition.
      Parameters:
      beanDefinition - The bean definition
      instanceSupplier - The supplier of the instance to execute the methods on
      Returns:
      The dynamic management bean
    • createMBean

      Object createMBean(io.micronaut.inject.BeanDefinition beanDefinition, Collection<io.micronaut.inject.ExecutableMethod> methods, Supplier<Object> instanceSupplier)
      Creates a dynamic management bean from the provided bean definition and methods.
      Parameters:
      beanDefinition - The bean definition
      methods - The methods to be made available as operations
      instanceSupplier - The supplier of the instance to execute the methods on
      Returns:
      The dynamic management bean