Package io.micronaut.context
Interface BeanResolutionContext.Path
- All Superinterfaces:
AutoCloseable
,Collection<BeanResolutionContext.Segment<?,
,?>> Deque<BeanResolutionContext.Segment<?,
,?>> Iterable<BeanResolutionContext.Segment<?,
,?>> Queue<BeanResolutionContext.Segment<?,
?>>
- Enclosing interface:
- BeanResolutionContext
public static interface BeanResolutionContext.Path
extends Deque<BeanResolutionContext.Segment<?,?>>, AutoCloseable
Represents a path taken to resolve a bean definitions dependencies.
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
close()
pushAnnotationResolve
(BeanDefinition beanDefinition, Argument annotationMemberBeanAsArgument) pushBeanCreate
(BeanDefinition<?> declaringType, Argument<?> beanType) Push an unresolved constructor call onto the queue.pushConstructorResolve
(BeanDefinition declaringType, Argument argument) Push an unresolved constructor call onto the queue.pushConstructorResolve
(BeanDefinition declaringType, String methodName, Argument argument, Argument[] arguments) Push an unresolved constructor call onto the queue.pushFieldResolve
(BeanDefinition declaringType, Argument fieldAsArgument) Push an unresolved field onto the queue.pushFieldResolve
(BeanDefinition declaringType, FieldInjectionPoint fieldInjectionPoint) Push an unresolved field onto the queue.pushMethodArgumentResolve
(BeanDefinition declaringType, MethodInjectionPoint methodInjectionPoint, Argument argument) Push an unresolved method call onto the queue.pushMethodArgumentResolve
(BeanDefinition declaringType, String methodName, Argument argument, Argument[] arguments) Push an unresolved method call onto the queue.Converts the path to a circular string.Methods inherited from interface java.util.Collection
clear, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
Methods inherited from interface java.util.Deque
add, addAll, addFirst, addLast, contains, descendingIterator, element, getFirst, getLast, iterator, offer, offerFirst, offerLast, peek, peekFirst, peekLast, poll, pollFirst, pollLast, pop, push, remove, remove, removeFirst, removeFirstOccurrence, removeLast, removeLastOccurrence, size
-
Method Details
-
pushBeanCreate
Push an unresolved constructor call onto the queue.- Parameters:
declaringType
- The typebeanType
- The bean type- Returns:
- This path
-
pushConstructorResolve
BeanResolutionContext.Path pushConstructorResolve(BeanDefinition declaringType, String methodName, Argument argument, Argument[] arguments) Push an unresolved constructor call onto the queue.- Parameters:
declaringType
- The typemethodName
- The method nameargument
- The unresolved argumentarguments
- The arguments- Returns:
- This path
-
pushConstructorResolve
Push an unresolved constructor call onto the queue.- Parameters:
declaringType
- The typeargument
- The unresolved argument- Returns:
- This path
-
pushMethodArgumentResolve
BeanResolutionContext.Path pushMethodArgumentResolve(BeanDefinition declaringType, MethodInjectionPoint methodInjectionPoint, Argument argument) Push an unresolved method call onto the queue.- Parameters:
declaringType
- The typemethodInjectionPoint
- The method injection pointargument
- The unresolved argument- Returns:
- This path
-
pushMethodArgumentResolve
BeanResolutionContext.Path pushMethodArgumentResolve(BeanDefinition declaringType, String methodName, Argument argument, Argument[] arguments) Push an unresolved method call onto the queue.- Parameters:
declaringType
- The typemethodName
- The method nameargument
- The unresolved argumentarguments
- The arguments- Returns:
- This path
-
pushFieldResolve
BeanResolutionContext.Path pushFieldResolve(BeanDefinition declaringType, FieldInjectionPoint fieldInjectionPoint) Push an unresolved field onto the queue.- Parameters:
declaringType
- declaring typefieldInjectionPoint
- The field injection point- Returns:
- This path
-
pushFieldResolve
Push an unresolved field onto the queue.- Parameters:
declaringType
- declaring typefieldAsArgument
- The field as argument- Returns:
- This path
-
pushAnnotationResolve
BeanResolutionContext.Path pushAnnotationResolve(BeanDefinition beanDefinition, Argument annotationMemberBeanAsArgument) -
toCircularString
String toCircularString()Converts the path to a circular string.- Returns:
- The circular string
-
currentSegment
Optional<BeanResolutionContext.Segment<?,?>> currentSegment()- Returns:
- The current path segment
-
close
default void close()- Specified by:
close
in interfaceAutoCloseable
-