Package io.micronaut.core.beans
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
public interface BeanMethod<B,T> extends Executable<B,T>, Named
Represents a method on aBeanIntrospection.A
BeanMethodis created when an accessible method on a class is annotated withio.micronaut.context.annotation.Executableor an annotation stereotype annotated with that annotation- Since:
- 2.3.0
-
-
Field Summary
-
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description BeanIntrospection<B>getDeclaringBean()default java.lang.Class<B>getDeclaringType()ReturnType<T>getReturnType()-
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
-
Methods inherited from interface io.micronaut.core.annotation.AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Methods inherited from interface io.micronaut.core.type.Executable
getArguments, invoke
-
-
-
-
Method Detail
-
getDeclaringBean
@NonNull BeanIntrospection<B> getDeclaringBean()
- Returns:
- The declaring bean introspection.
-
getReturnType
@NonNull ReturnType<T> getReturnType()
- Returns:
- The return type.
-
getDeclaringType
default java.lang.Class<B> getDeclaringType()
- Specified by:
getDeclaringTypein interfaceExecutable<B,T>- Returns:
- The declaring type
-
-