Package io.micronaut.context
Class AbstractBeanResolutionContext.MethodSegment
- java.lang.Object
-
- io.micronaut.context.AbstractBeanResolutionContext.MethodSegment
-
- All Implemented Interfaces:
BeanResolutionContext.Segment,io.micronaut.core.annotation.AnnotationMetadataProvider,io.micronaut.core.annotation.AnnotationSource,io.micronaut.core.naming.Named,CallableInjectionPoint,InjectionPoint
- Direct Known Subclasses:
AbstractBeanResolutionContext.MethodArgumentSegment
- Enclosing class:
- AbstractBeanResolutionContext
public static class AbstractBeanResolutionContext.MethodSegment extends java.lang.Object implements CallableInjectionPoint
A segment that represents a method.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)io.micronaut.core.annotation.AnnotationMetadatagetAnnotationMetadata()io.micronaut.core.type.ArgumentgetArgument()io.micronaut.core.type.Argument<?>[]getArguments()BeanDefinitiongetDeclaringBean()BeanDefinitiongetDeclaringType()InjectionPointgetInjectionPoint()java.lang.StringgetName()inthashCode()booleanrequiresReflection()java.lang.StringtoString()-
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
-
-
-
-
Method Detail
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getInjectionPoint
public InjectionPoint getInjectionPoint()
- Specified by:
getInjectionPointin interfaceBeanResolutionContext.Segment- Returns:
- The inject point
-
getDeclaringBean
public BeanDefinition getDeclaringBean()
- Specified by:
getDeclaringBeanin interfaceInjectionPoint- Returns:
- The bean that declares this injection point
-
requiresReflection
public boolean requiresReflection()
- Specified by:
requiresReflectionin interfaceInjectionPoint- Returns:
- Whether reflection is required to satisfy the injection point
-
getArguments
public io.micronaut.core.type.Argument<?>[] getArguments()
- Specified by:
getArgumentsin interfaceCallableInjectionPoint- Returns:
- The required argument types.
-
getAnnotationMetadata
public io.micronaut.core.annotation.AnnotationMetadata getAnnotationMetadata()
- Specified by:
getAnnotationMetadatain interfaceio.micronaut.core.annotation.AnnotationMetadataProvider
-
getName
public java.lang.String getName()
- Specified by:
getNamein interfaceBeanResolutionContext.Segment- 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
public BeanDefinition getDeclaringType()
- Specified by:
getDeclaringTypein interfaceBeanResolutionContext.Segment- Returns:
- The type requested
-
getArgument
public io.micronaut.core.type.Argument getArgument()
- Specified by:
getArgumentin 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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-