public abstract class AbstractDynamicMBeanFactory extends java.lang.Object implements DynamicMBeanFactory
Constructor and Description |
---|
AbstractDynamicMBeanFactory() |
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.
|
protected abstract java.lang.String |
getBeanDescription(io.micronaut.inject.BeanDefinition beanDefinition)
Returns the management bean description.
|
protected abstract int |
getImpact(io.micronaut.inject.ExecutableMethod method)
Returns the impact of the provided method.
|
protected abstract java.lang.String |
getMethodDescription(io.micronaut.inject.ExecutableMethod method)
Returns the description of a management bean operation.
|
protected javax.management.MBeanOperationInfo |
getOperationInfo(io.micronaut.inject.ExecutableMethod method)
Returns the operation information.
|
protected abstract java.lang.String |
getParameterDescription(io.micronaut.core.type.Argument argument)
Returns the description of a management bean operation parameter.
|
protected javax.management.MBeanParameterInfo[] |
getParameters(io.micronaut.inject.ExecutableMethod method)
Extracts parameters from an executable method.
|
protected java.lang.String |
getReturnType(io.micronaut.inject.ExecutableMethod method)
Returns the return type of the executable method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMBean
public 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)
DynamicMBeanFactory
createMBean
in interface DynamicMBeanFactory
beanDefinition
- The bean definitionmethods
- The methods to be made available as operationsinstanceSupplier
- The supplier of the instance to execute the methods onprotected abstract java.lang.String getBeanDescription(io.micronaut.inject.BeanDefinition beanDefinition)
beanDefinition
- The bean definitionMBeanInfo.getDescription()
protected abstract java.lang.String getMethodDescription(io.micronaut.inject.ExecutableMethod method)
method
- The methodMBeanFeatureInfo.getDescription()
protected abstract java.lang.String getParameterDescription(io.micronaut.core.type.Argument argument)
argument
- The argumentMBeanFeatureInfo.getDescription()
protected javax.management.MBeanParameterInfo[] getParameters(io.micronaut.inject.ExecutableMethod method)
method
- The methodMBeanOperationInfo.getSignature()
protected java.lang.String getReturnType(io.micronaut.inject.ExecutableMethod method)
method
- The methodMBeanOperationInfo.getReturnType()
protected abstract int getImpact(io.micronaut.inject.ExecutableMethod method)
method
- The methodMBeanOperationInfo.getImpact()
protected javax.management.MBeanOperationInfo getOperationInfo(io.micronaut.inject.ExecutableMethod method)
method
- The methodMBeanInfo.getOperations()