Package io.micronaut.context
Class AbstractBeanResolutionContext.FieldSegment
- java.lang.Object
-
- io.micronaut.context.AbstractBeanResolutionContext.FieldSegment
-
- All Implemented Interfaces:
BeanResolutionContext.Segment
,io.micronaut.core.annotation.AnnotationMetadataProvider
,io.micronaut.core.annotation.AnnotationSource
,io.micronaut.core.naming.Named
,io.micronaut.core.type.ArgumentCoercible
,ArgumentInjectionPoint
,InjectionPoint
- Enclosing class:
- AbstractBeanResolutionContext
public static class AbstractBeanResolutionContext.FieldSegment extends java.lang.Object implements InjectionPoint, io.micronaut.core.type.ArgumentCoercible, ArgumentInjectionPoint
A segment that represents a field.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.micronaut.core.type.Argument
asArgument()
boolean
equals(java.lang.Object o)
io.micronaut.core.annotation.AnnotationMetadata
getAnnotationMetadata()
io.micronaut.core.type.Argument
getArgument()
BeanDefinition
getDeclaringBean()
BeanDefinition
getDeclaringType()
InjectionPoint
getInjectionPoint()
java.lang.String
getName()
CallableInjectionPoint
getOuterInjectionPoint()
int
hashCode()
boolean
requiresReflection()
java.lang.String
toString()
-
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, 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 Detail
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getInjectionPoint
public InjectionPoint getInjectionPoint()
- Specified by:
getInjectionPoint
in interfaceBeanResolutionContext.Segment
- Returns:
- The inject point
-
getDeclaringBean
public BeanDefinition getDeclaringBean()
- Specified by:
getDeclaringBean
in interfaceInjectionPoint
- Returns:
- The bean that declares this injection point
-
requiresReflection
public boolean requiresReflection()
- Specified by:
requiresReflection
in interfaceInjectionPoint
- Returns:
- Whether reflection is required to satisfy the injection point
-
getOuterInjectionPoint
public CallableInjectionPoint getOuterInjectionPoint()
- Specified by:
getOuterInjectionPoint
in interfaceArgumentInjectionPoint
- Returns:
- The outer injection point (method or constructor)
-
asArgument
public io.micronaut.core.type.Argument asArgument()
- Specified by:
asArgument
in interfaceio.micronaut.core.type.ArgumentCoercible
- Specified by:
asArgument
in interfaceArgumentInjectionPoint
-
getAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
- Specified by:
getAnnotationMetadata
in interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
getName
public java.lang.String getName()
- Specified by:
getName
in interfaceBeanResolutionContext.Segment
- Specified by:
getName
in 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
public BeanDefinition getDeclaringType()
- Specified by:
getDeclaringType
in interfaceBeanResolutionContext.Segment
- Returns:
- The type requested
-
getArgument
public io.micronaut.core.type.Argument getArgument()
- Specified by:
getArgument
in interfaceBeanResolutionContext.Segment
- Returns:
- The argument to create the type. For a field this will be empty
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-