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
,io.micronaut.core.annotation.AnnotationMetadataProvider
,io.micronaut.core.annotation.AnnotationSource
,io.micronaut.core.naming.Named
,io.micronaut.core.type.ArgumentCoercible
,ArgumentInjectionPoint
,CallableInjectionPoint
,InjectionPoint
- Enclosing class:
- AbstractBeanResolutionContext
public static class AbstractBeanResolutionContext.MethodArgumentSegment extends AbstractBeanResolutionContext.MethodSegment implements ArgumentInjectionPoint
A segment that represents a method argument.
-
-
Constructor Summary
Constructors Constructor Description MethodArgumentSegment(BeanDefinition declaringType, java.lang.String methodName, io.micronaut.core.type.Argument argument, io.micronaut.core.type.Argument[] arguments, boolean requiresReflection, AbstractBeanResolutionContext.MethodSegment outer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
io.micronaut.core.type.Argument
getArgument()
BeanDefinition
getDeclaringType()
java.lang.String
getName()
CallableInjectionPoint
getOuterInjectionPoint()
int
hashCode()
-
Methods inherited from class io.micronaut.context.AbstractBeanResolutionContext.MethodSegment
getAnnotationMetadata, getArguments, getDeclaringBean, getInjectionPoint, requiresReflection, 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, 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.inject.ArgumentInjectionPoint
asArgument, getArgument
-
Methods inherited from interface io.micronaut.inject.InjectionPoint
getDeclaringBean, requiresReflection
-
-
-
-
Constructor Detail
-
MethodArgumentSegment
public MethodArgumentSegment(BeanDefinition declaringType, java.lang.String methodName, io.micronaut.core.type.Argument argument, io.micronaut.core.type.Argument[] arguments, boolean requiresReflection, AbstractBeanResolutionContext.MethodSegment outer)
-
-
Method Detail
-
getOuterInjectionPoint
public CallableInjectionPoint getOuterInjectionPoint()
- Specified by:
getOuterInjectionPoint
in interfaceArgumentInjectionPoint
- Returns:
- The outer injection point (method or constructor)
-
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
-
-