Package io.micronaut.context
Class AbstractBeanResolutionContext.MethodArgumentSegment
java.lang.Object
io.micronaut.context.AbstractBeanResolutionContext.MethodSegment
io.micronaut.context.AbstractBeanResolutionContext.MethodArgumentSegment
- All Implemented Interfaces:
BeanResolutionContext.Segment
,AnnotationMetadataProvider
,AnnotationSource
,Named
,ArgumentCoercible
,ArgumentInjectionPoint
,CallableInjectionPoint
,InjectionPoint
- Enclosing class:
- AbstractBeanResolutionContext
public static class AbstractBeanResolutionContext.MethodArgumentSegment
extends AbstractBeanResolutionContext.MethodSegment
implements ArgumentInjectionPoint
A segment that represents a method argument.
-
Field Summary
Fields inherited from interface io.micronaut.core.annotation.AnnotationSource
EMPTY
-
Constructor Summary
ConstructorDescriptionMethodArgumentSegment
(BeanDefinition declaringType, String methodName, Argument argument, Argument[] arguments, AbstractBeanResolutionContext.MethodSegment outer) -
Method Summary
Methods inherited from class io.micronaut.context.AbstractBeanResolutionContext.MethodSegment
getAnnotationMetadata, getArguments, getDeclaringBean, getInjectionPoint
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, getAnnotationMetadata, 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
asArgument, getArgument
Methods inherited from interface io.micronaut.inject.InjectionPoint
getDeclaringBean
-
Constructor Details
-
MethodArgumentSegment
public MethodArgumentSegment(BeanDefinition declaringType, String methodName, Argument argument, Argument[] arguments, AbstractBeanResolutionContext.MethodSegment outer)
-
-
Method Details
-
getOuterInjectionPoint
- Specified by:
getOuterInjectionPoint
in interfaceArgumentInjectionPoint
- Returns:
- The outer injection point (method or constructor)
-
toString
- Overrides:
toString
in classAbstractBeanResolutionContext.MethodSegment
-
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()
-