Class AbstractDynamicMBeanFactory
java.lang.Object
io.micronaut.configuration.jmx.context.AbstractDynamicMBeanFactory
- All Implemented Interfaces:
 DynamicMBeanFactory
- Direct Known Subclasses:
 EndpointMBeanFactory
A base class that creates dynamic MBeans from a bean definition.
- Since:
 - 1.0
 - Author:
 - James Kleeh
 
- 
Constructor Summary
Constructors - 
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.protected abstract StringgetBeanDescription(io.micronaut.inject.BeanDefinition beanDefinition) Returns the management bean description.protected abstract intgetImpact(io.micronaut.inject.ExecutableMethod method) Returns the impact of the provided method.protected abstract StringgetMethodDescription(io.micronaut.inject.ExecutableMethod method) Returns the description of a management bean operation.protected MBeanOperationInfogetOperationInfo(io.micronaut.inject.ExecutableMethod method) Returns the operation information.protected abstract StringgetParameterDescription(io.micronaut.core.type.Argument argument) Returns the description of a management bean operation parameter.protected MBeanParameterInfo[]getParameters(io.micronaut.inject.ExecutableMethod method) Extracts parameters from an executable method.protected StringgetReturnType(io.micronaut.inject.ExecutableMethod method) Returns the return type of the executable method.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.configuration.jmx.context.DynamicMBeanFactory
createMBean 
- 
Constructor Details
- 
AbstractDynamicMBeanFactory
public AbstractDynamicMBeanFactory() 
 - 
 - 
Method Details
- 
createMBean
public Object createMBean(io.micronaut.inject.BeanDefinition beanDefinition, Collection<io.micronaut.inject.ExecutableMethod> methods, Supplier<Object> instanceSupplier) Description copied from interface:DynamicMBeanFactoryCreates a dynamic management bean from the provided bean definition and methods.- Specified by:
 createMBeanin interfaceDynamicMBeanFactory- 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
 
 - 
getBeanDescription
Returns the management bean description.- Parameters:
 beanDefinition- The bean definition- Returns:
 - The description for the management bean
 - See Also:
 
 - 
getMethodDescription
Returns the description of a management bean operation.- Parameters:
 method- The method- Returns:
 - The description for the management bean operation
 - See Also:
 
 - 
getParameterDescription
Returns the description of a management bean operation parameter.- Parameters:
 argument- The argument- Returns:
 - The description for the management bean operation parameter
 - See Also:
 
 - 
getParameters
Extracts parameters from an executable method.- Parameters:
 method- The method- Returns:
 - The array of management bean operation parameters
 - See Also:
 
 - 
getReturnType
Returns the return type of the executable method.- Parameters:
 method- The method- Returns:
 - The return type of the method
 - See Also:
 
 - 
getImpact
protected abstract int getImpact(io.micronaut.inject.ExecutableMethod method) Returns the impact of the provided method.- Parameters:
 method- The method- Returns:
 - The impact
 - See Also:
 
 - 
getOperationInfo
Returns the operation information.- Parameters:
 method- The method- Returns:
 - The operation information
 - See Also:
 
 
 -