Interface MemberDefinition<K>
- Type Parameters:
K- The bean element kind type
- All Superinterfaces:
io.micronaut.core.annotation.AnnotationMetadataProvider, io.micronaut.core.annotation.AnnotationSource
- All Known Implementing Classes:
ConstructorDefinition, FieldDefinition, MethodDefinition
public sealed interface MemberDefinition<K>
permits ConstructorDefinition<K,C>, FieldDefinition<K,F>, MethodDefinition<K,M>
Common contract for bean definition members.
- Since:
- 5.1.0
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionio.micronaut.core.annotation.AnnotationMetadataReturns the annotation metadata backing this provider.default io.micronaut.core.annotation.AnnotationMetadataReturns the annotation metadata associated with this element.Returns the injection points contributed by this member definition.Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
injectionPoints
List<BeanDefinitionInjectionPoint<K>> injectionPoints()Returns the injection points contributed by this member definition.- Returns:
- The injection points contributed by this member definition
-
annotationMetadata
io.micronaut.core.annotation.AnnotationMetadata annotationMetadata()Returns the annotation metadata backing this provider.- Returns:
- The annotation metadata backing this provider
-
getAnnotationMetadata
default io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()Returns the annotation metadata associated with this element.- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider- Returns:
- The annotation metadata associated with this element
-