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 TypeMethodDescriptioncreateMBean
(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 definitioninstanceSupplier
- 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 definitionmethods
- The methods to be made available as operationsinstanceSupplier
- The supplier of the instance to execute the methods on- Returns:
- The dynamic management bean
-