public interface DynamicMBeanFactory
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
createMBean(io.micronaut.inject.BeanDefinition beanDefinition,
java.util.Collection<io.micronaut.inject.ExecutableMethod> methods,
java.util.function.Supplier<java.lang.Object> instanceSupplier)
Creates a dynamic management bean from the provided bean definition and methods.
|
default java.lang.Object |
createMBean(io.micronaut.inject.BeanDefinition beanDefinition,
java.util.function.Supplier<java.lang.Object> instanceSupplier)
Creates a dynamic management bean from the provided bean definition.
|
default java.lang.Object createMBean(io.micronaut.inject.BeanDefinition beanDefinition, java.util.function.Supplier<java.lang.Object> instanceSupplier)
beanDefinition
- The bean definitioninstanceSupplier
- The supplier of the instance to execute the methods onjava.lang.Object createMBean(io.micronaut.inject.BeanDefinition beanDefinition, java.util.Collection<io.micronaut.inject.ExecutableMethod> methods, java.util.function.Supplier<java.lang.Object> instanceSupplier)
beanDefinition
- The bean definitionmethods
- The methods to be made available as operationsinstanceSupplier
- The supplier of the instance to execute the methods on