Package io.micronaut.context
Class AbstractBeanResolutionContext.MethodSegment<B,T>
java.lang.Object
io.micronaut.context.AbstractBeanResolutionContext.MethodSegment<B,T>
- All Implemented Interfaces:
BeanResolutionContext.Segment<B,,T> io.micronaut.core.annotation.AnnotationMetadataProvider,io.micronaut.core.annotation.AnnotationSource,io.micronaut.core.naming.Named,CallableInjectionPoint<B>,InjectionPoint<B>
- Direct Known Subclasses:
AbstractBeanResolutionContext.MethodArgumentSegment
- Enclosing class:
- AbstractBeanResolutionContext
public static class AbstractBeanResolutionContext.MethodSegment<B,T>
extends Object
implements CallableInjectionPoint<B>
A segment that represents a method.
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY -
Method Summary
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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
-
toString
-
getInjectionPoint
- Specified by:
getInjectionPointin interfaceBeanResolutionContext.Segment<B,T> - Returns:
- The inject point
-
getDeclaringBean
- Specified by:
getDeclaringBeanin interfaceInjectionPoint<B>- Returns:
- The bean that declares this injection point
-
getArguments
public io.micronaut.core.type.Argument<?>[] getArguments()- Specified by:
getArgumentsin interfaceCallableInjectionPoint<B>- Returns:
- The required argument types.
-
getAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
getName
- Specified by:
getNamein interfaceBeanResolutionContext.Segment<B,T> - Specified by:
getNamein interfaceio.micronaut.core.naming.Named- Returns:
- The name of the segment. For a field this is the field name, for a method the method name and for a constructor the type name
-
getDeclaringType
- Specified by:
getDeclaringTypein interfaceBeanResolutionContext.Segment<B,T> - Returns:
- The type requested
-
getArgument
- Specified by:
getArgumentin interfaceBeanResolutionContext.Segment<B,T> - Returns:
- The argument to create the type. For a field this will be empty
-
equals
-
hashCode
public int hashCode()
-