Interface BeanMethod<B,T>
- Type Parameters:
B- The bean typeT- The return type
- All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource, Executable<B,T>, Named
- All Known Implementing Classes:
AbstractBeanMethod, AbstractExecutableBeanMethod
Represents a method on a
BeanIntrospection.
A BeanMethod is created when an accessible method on a class is annotated with io.micronaut.context.annotation.Executable or an annotation stereotype annotated with that annotation
- Since:
- 2.3.0
-
Field Summary
Fields inherited from interface AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptiondefault AnnotationMetadataThe annotations this method declares itself: without the ones of the bean type, whichAnnotationMetadataProvider.getAnnotationMetadata()combines with the ones of the method, and without the ones inherited from the methods it overrides, whichkeeps.invalid reference
#getDeclaredMetadata()Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclaredMethods inherited from interface Executable
getArguments, invoke
-
Method Details
-
getDeclaringBean
BeanIntrospection<B> getDeclaringBean()- Returns:
- The declaring bean introspection.
-
getReturnType
ReturnType<T> getReturnType()- Returns:
- The return type.
-
getDeclaredMethodAnnotationMetadata
The annotations this method declares itself: without the ones of the bean type, whichAnnotationMetadataProvider.getAnnotationMetadata()combines with the ones of the method, and without the ones inherited from the methods it overrides, whichkeeps. The runtime counterpart ofinvalid reference
#getDeclaredMetadata()MethodElement.getDeclaredMethodAnnotationMetadata()of the annotation processors.- Returns:
- The annotation metadata of this method declaration only
- Since:
- 5.2.0
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceExecutable<B,T> - Returns:
- The declaring type
-