T - The bean typepublic interface BeanType<T> extends io.micronaut.core.annotation.AnnotationMetadataProvider, BeanContextConditional
BeanDefinitionReference and BeanDefinition.| Modifier and Type | Method and Description |
|---|---|
java.lang.Class<T> |
getBeanType()
Returns the bean type.
|
default java.util.Set<java.lang.Class<?>> |
getExposedTypes()
Returns a potentially limited subset of bean types exposed by this bean.
|
default java.lang.String |
getName() |
default boolean |
isCandidateBean(io.micronaut.core.type.Argument<?> beanType)
Return whether this bean type is a candidate for dependency injection for the passed type.
|
default boolean |
isContainerType()
Checks whether the bean type is a container type.
|
default boolean |
isPrimary() |
default boolean |
requiresMethodProcessing()
By default, when the
BeanContext is started, the
BeanDefinition.getExecutableMethods() are not processed by registered
ExecutableMethodProcessor instances unless this method returns true. |
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypegetAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredisEnabled, isEnableddefault boolean isPrimary()
Primaryjava.lang.Class<T> getBeanType()
default boolean isContainerType()
Iterable.@NonNull default java.util.Set<java.lang.Class<?>> getExposedTypes()
Type annotation.default boolean isCandidateBean(@Nullable
io.micronaut.core.type.Argument<?> beanType)
beanType - The bean typedefault java.lang.String getName()
default boolean requiresMethodProcessing()
BeanContext is started, the
BeanDefinition.getExecutableMethods() are not processed by registered
ExecutableMethodProcessor instances unless this method returns true.Executable.processOnStartup()