Package io.micronaut.context
Class AbstractBeanResolutionContext.FieldSegment<B,T>
java.lang.Object
io.micronaut.context.AbstractBeanResolutionContext.FieldSegment<B,T>
- All Implemented Interfaces:
BeanResolutionContext.Segment<B,
,T> AnnotationMetadataProvider
,AnnotationSource
,Named
,ArgumentCoercible<T>
,ArgumentInjectionPoint<B,
,T> InjectionPoint<B>
- Enclosing class:
- AbstractBeanResolutionContext
public static class AbstractBeanResolutionContext.FieldSegment<B,T>
extends Object
implements InjectionPoint<B>, ArgumentCoercible<T>, ArgumentInjectionPoint<B,T>
A segment that represents a field.
-
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, wait
Methods inherited from interface io.micronaut.core.annotation.AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getTargetAnnotationMetadata, 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.inject.ArgumentInjectionPoint
getArgument
-
Method Details
-
toString
-
getInjectionPoint
- Specified by:
getInjectionPoint
in interfaceBeanResolutionContext.Segment<B,
T> - Returns:
- The inject point
-
getDeclaringBean
- Specified by:
getDeclaringBean
in interfaceInjectionPoint<B>
- Returns:
- The bean that declares this injection point
-
getOuterInjectionPoint
- Specified by:
getOuterInjectionPoint
in interfaceArgumentInjectionPoint<B,
T> - Returns:
- The outer injection point (method or constructor)
-
asArgument
- Specified by:
asArgument
in interfaceArgumentCoercible<B>
- Specified by:
asArgument
in interfaceArgumentInjectionPoint<B,
T> - Returns:
- The argument
-
getAnnotationMetadata
Description copied from interface:AnnotationMetadataProvider
Supplies the metadata. Defaults toAnnotationMetadata.EMPTY_METADATA
.- Specified by:
getAnnotationMetadata
in interfaceAnnotationMetadataProvider
- Returns:
- The
AnnotationMetadata
-
getName
- Specified by:
getName
in interfaceBeanResolutionContext.Segment<B,
T> - Specified by:
getName
in interfaceNamed
- 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:
getDeclaringType
in interfaceBeanResolutionContext.Segment<B,
T> - Returns:
- The type requested
-
getArgument
- Specified by:
getArgument
in interfaceBeanResolutionContext.Segment<B,
T> - Returns:
- The argument to create the type. For a field this will be empty
-
equals
-
hashCode
public int hashCode()
-