Package io.micronaut.context
Interface BeanResolutionContext.Path
-
- All Superinterfaces:
java.lang.AutoCloseable
,java.util.Collection<BeanResolutionContext.Segment<?>>
,java.util.Deque<BeanResolutionContext.Segment<?>>
,java.lang.Iterable<BeanResolutionContext.Segment<?>>
,java.util.Queue<BeanResolutionContext.Segment<?>>
- Enclosing interface:
- BeanResolutionContext
public static interface BeanResolutionContext.Path extends java.util.Deque<BeanResolutionContext.Segment<?>>, java.lang.AutoCloseable
Represents a path taken to resolve a bean definitions dependencies.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default void
close()
java.util.Optional<BeanResolutionContext.Segment<?>>
currentSegment()
BeanResolutionContext.Path
pushAnnotationResolve(BeanDefinition beanDefinition, io.micronaut.core.type.Argument annotationMemberBeanAsArgument)
BeanResolutionContext.Path
pushBeanCreate(BeanDefinition<?> declaringType, io.micronaut.core.type.Argument<?> beanType)
Push an unresolved constructor call onto the queue.BeanResolutionContext.Path
pushConstructorResolve(BeanDefinition declaringType, io.micronaut.core.type.Argument argument)
Push an unresolved constructor call onto the queue.BeanResolutionContext.Path
pushConstructorResolve(BeanDefinition declaringType, java.lang.String methodName, io.micronaut.core.type.Argument argument, io.micronaut.core.type.Argument[] arguments, boolean requiresReflection)
Push an unresolved constructor call onto the queue.BeanResolutionContext.Path
pushFieldResolve(BeanDefinition declaringType, io.micronaut.core.type.Argument fieldAsArgument, boolean requiresReflection)
Push an unresolved field onto the queue.BeanResolutionContext.Path
pushFieldResolve(BeanDefinition declaringType, FieldInjectionPoint fieldInjectionPoint)
Push an unresolved field onto the queue.BeanResolutionContext.Path
pushMethodArgumentResolve(BeanDefinition declaringType, MethodInjectionPoint methodInjectionPoint, io.micronaut.core.type.Argument argument)
Push an unresolved method call onto the queue.BeanResolutionContext.Path
pushMethodArgumentResolve(BeanDefinition declaringType, java.lang.String methodName, io.micronaut.core.type.Argument argument, io.micronaut.core.type.Argument[] arguments, boolean requiresReflection)
Push an unresolved method call onto the queue.java.lang.String
toCircularString()
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 Detail
-
pushBeanCreate
BeanResolutionContext.Path pushBeanCreate(BeanDefinition<?> declaringType, io.micronaut.core.type.Argument<?> beanType)
Push an unresolved constructor call onto the queue.- Parameters:
declaringType
- The typebeanType
- The bean type- Returns:
- This path
-
pushConstructorResolve
BeanResolutionContext.Path pushConstructorResolve(BeanDefinition declaringType, java.lang.String methodName, io.micronaut.core.type.Argument argument, io.micronaut.core.type.Argument[] arguments, boolean requiresReflection)
Push an unresolved constructor call onto the queue.- Parameters:
declaringType
- The typemethodName
- The method nameargument
- The unresolved argumentarguments
- The argumentsrequiresReflection
- is requires reflection- Returns:
- This path
-
pushConstructorResolve
BeanResolutionContext.Path pushConstructorResolve(BeanDefinition declaringType, io.micronaut.core.type.Argument argument)
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, io.micronaut.core.type.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, java.lang.String methodName, io.micronaut.core.type.Argument argument, io.micronaut.core.type.Argument[] arguments, boolean requiresReflection)
Push an unresolved method call onto the queue.- Parameters:
declaringType
- The typemethodName
- The method nameargument
- The unresolved argumentarguments
- The argumentsrequiresReflection
- is requires reflection- 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
BeanResolutionContext.Path pushFieldResolve(BeanDefinition declaringType, io.micronaut.core.type.Argument fieldAsArgument, boolean requiresReflection)
Push an unresolved field onto the queue.- Parameters:
declaringType
- declaring typefieldAsArgument
- The field as argumentrequiresReflection
- is requires reflection- Returns:
- This path
-
pushAnnotationResolve
BeanResolutionContext.Path pushAnnotationResolve(BeanDefinition beanDefinition, io.micronaut.core.type.Argument annotationMemberBeanAsArgument)
-
toCircularString
java.lang.String toCircularString()
Converts the path to a circular string.- Returns:
- The circular string
-
currentSegment
java.util.Optional<BeanResolutionContext.Segment<?>> currentSegment()
- Returns:
- The current path segment
-
close
default void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-