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 Details

    • pushBeanCreate

      BeanResolutionContext.Path pushBeanCreate(BeanDefinition<?> declaringType, Argument<?> beanType)
      Push an unresolved constructor call onto the queue.
      Parameters:
      declaringType - The type
      beanType - 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 type
      methodName - The method name
      argument - The unresolved argument
      arguments - The arguments
      Returns:
      This path
    • pushConstructorResolve

      BeanResolutionContext.Path pushConstructorResolve(BeanDefinition declaringType, Argument argument)
      Push an unresolved constructor call onto the queue.
      Parameters:
      declaringType - The type
      argument - 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 type
      methodInjectionPoint - The method injection point
      argument - 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 type
      methodName - The method name
      argument - The unresolved argument
      arguments - The arguments
      Returns:
      This path
    • pushFieldResolve

      BeanResolutionContext.Path pushFieldResolve(BeanDefinition declaringType, FieldInjectionPoint fieldInjectionPoint)
      Push an unresolved field onto the queue.
      Parameters:
      declaringType - declaring type
      fieldInjectionPoint - The field injection point
      Returns:
      This path
    • pushFieldResolve

      BeanResolutionContext.Path pushFieldResolve(BeanDefinition declaringType, Argument fieldAsArgument)
      Push an unresolved field onto the queue.
      Parameters:
      declaringType - declaring type
      fieldAsArgument - 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 interface AutoCloseable