Class AbstractDynamicMBeanFactory

java.lang.Object
io.micronaut.configuration.jmx.context.AbstractDynamicMBeanFactory
All Implemented Interfaces:
DynamicMBeanFactory
Direct Known Subclasses:
EndpointMBeanFactory

public abstract class AbstractDynamicMBeanFactory extends Object implements DynamicMBeanFactory
A base class that creates dynamic MBeans from a bean definition.
Since:
1.0
Author:
James Kleeh
  • 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: DynamicMBeanFactory
      Creates a dynamic management bean from the provided bean definition and methods.
      Specified by:
      createMBean in interface DynamicMBeanFactory
      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
    • getBeanDescription

      protected abstract String getBeanDescription(io.micronaut.inject.BeanDefinition beanDefinition)
      Returns the management bean description.
      Parameters:
      beanDefinition - The bean definition
      Returns:
      The description for the management bean
      See Also:
    • getMethodDescription

      protected abstract String getMethodDescription(io.micronaut.inject.ExecutableMethod method)
      Returns the description of a management bean operation.
      Parameters:
      method - The method
      Returns:
      The description for the management bean operation
      See Also:
    • getParameterDescription

      protected abstract String getParameterDescription(io.micronaut.core.type.Argument argument)
      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

      protected MBeanParameterInfo[] getParameters(io.micronaut.inject.ExecutableMethod method)
      Extracts parameters from an executable method.
      Parameters:
      method - The method
      Returns:
      The array of management bean operation parameters
      See Also:
    • getReturnType

      protected String getReturnType(io.micronaut.inject.ExecutableMethod method)
      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

      protected MBeanOperationInfo getOperationInfo(io.micronaut.inject.ExecutableMethod method)
      Returns the operation information.
      Parameters:
      method - The method
      Returns:
      The operation information
      See Also: