Class DefaultBeanDefinitionData
java.lang.Object
io.micronaut.management.endpoint.beans.impl.DefaultBeanDefinitionData
- All Implemented Interfaces:
BeanDefinitionData<Map<String,
Object>>
@Singleton
@Requires(beans=BeansEndpoint.class)
public class DefaultBeanDefinitionData
extends Object
implements BeanDefinitionData<Map<String,Object>>
The default
BeanDefinitionData
implementation. Returns a Map
with
3 keys; "dependencies": A list of class names the bean depends on, "scope": The
scope of the bean Scope
, "type": The bean class name.- Since:
- 1.0
- Author:
- James Kleeh
-
Method Summary
Modifier and TypeMethodDescriptiongetData
(BeanDefinition<?> beanDefinition) getDependencies
(@NonNull BeanDefinition<?> beanDefinition) getQualifier
(@NonNull BeanDefinition<?> beanDefinition) Obtains the qualifier.getScope
(@NonNull BeanDefinition<?> beanDefinition) getType
(@NonNull BeanDefinition<?> beanDefinition)
-
Method Details
-
getData
- Specified by:
getData
in interfaceBeanDefinitionData<Map<String,
Object>> - Parameters:
beanDefinition
- The bean definition- Returns:
- Bean data
-
getQualifier
@Nullable protected @Nullable String getQualifier(@NonNull @NonNull BeanDefinition<?> beanDefinition) Obtains the qualifier.- Parameters:
beanDefinition
- The bean definition.- Returns:
- The qualifier
-
getDependencies
@NonNull protected @NonNull List<String> getDependencies(@NonNull @NonNull BeanDefinition<?> beanDefinition) - Parameters:
beanDefinition
- A bean definition- Returns:
- A list of dependencies for the bean definition
-
getScope
- Parameters:
beanDefinition
- A bean definition- Returns:
- The scope for the bean
-
getType
- Parameters:
beanDefinition
- A bean definition- Returns:
- The type of the bean as String
-