public abstract class AbstractDynamicMBeanFactory extends Object implements DynamicMBeanFactory
| Constructor and Description |
|---|
AbstractDynamicMBeanFactory() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createMBean(BeanDefinition beanDefinition,
Collection<ExecutableMethod> methods,
Supplier<Object> instanceSupplier)
Creates a dynamic management bean from the provided bean definition and methods.
|
protected abstract String |
getBeanDescription(BeanDefinition beanDefinition)
Returns the management bean description.
|
protected abstract int |
getImpact(ExecutableMethod method)
Returns the impact of the provided method.
|
protected abstract String |
getMethodDescription(ExecutableMethod method)
Returns the description of a management bean operation.
|
protected MBeanOperationInfo |
getOperationInfo(ExecutableMethod method)
Returns the operation information.
|
protected abstract String |
getParameterDescription(Argument argument)
Returns the description of a management bean operation parameter.
|
protected MBeanParameterInfo[] |
getParameters(ExecutableMethod method)
Extracts parameters from an executable method.
|
protected String |
getReturnType(ExecutableMethod method)
Returns the return type of the executable method.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateMBeanpublic Object createMBean(BeanDefinition beanDefinition, Collection<ExecutableMethod> methods, Supplier<Object> instanceSupplier)
DynamicMBeanFactorycreateMBean in interface DynamicMBeanFactorybeanDefinition - The bean definitionmethods - The methods to be made available as operationsinstanceSupplier - The supplier of the instance to execute the methods onprotected abstract String getBeanDescription(BeanDefinition beanDefinition)
beanDefinition - The bean definitionMBeanInfo.getDescription()protected abstract String getMethodDescription(ExecutableMethod method)
method - The methodMBeanFeatureInfo.getDescription()protected abstract String getParameterDescription(Argument argument)
argument - The argumentMBeanFeatureInfo.getDescription()protected MBeanParameterInfo[] getParameters(ExecutableMethod method)
method - The methodMBeanOperationInfo.getSignature()protected String getReturnType(ExecutableMethod method)
method - The methodMBeanOperationInfo.getReturnType()protected abstract int getImpact(ExecutableMethod method)
method - The methodMBeanOperationInfo.getImpact()protected MBeanOperationInfo getOperationInfo(ExecutableMethod method)
method - The methodMBeanInfo.getOperations()