Package io.micronaut.context
Interface BeanResolutionContext.Segment<B,T>
- Type Parameters:
B
- the declaring typeT
- the injected type
- All Known Implementing Classes:
AbstractBeanResolutionContext.AbstractSegment
,AbstractBeanResolutionContext.AnnotationSegment
,AbstractBeanResolutionContext.ConstructorArgumentSegment
,AbstractBeanResolutionContext.ConstructorSegment
,AbstractBeanResolutionContext.FieldSegment
,AbstractBeanResolutionContext.MethodArgumentSegment
,AbstractBeanResolutionContext.MethodSegment
- Enclosing interface:
- BeanResolutionContext
public static interface BeanResolutionContext.Segment<B,T>
A segment in a path.
-
Method Summary
-
Method Details
-
getDeclaringType
BeanDefinition<B> getDeclaringType()- Returns:
- The type requested
-
getDeclaringTypeQualifier
- Returns:
- The declaring type qualifier
- Since:
- 4.5.0
-
getInjectionPoint
InjectionPoint<B> getInjectionPoint()- Returns:
- The inject point
-
getName
String getName()- 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
-
getArgument
- Returns:
- The argument to create the type. For a field this will be empty
-