Interface BeanDefinitionInjectionPointResolver

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface BeanDefinitionInjectionPointResolver
Resolves injection point shapes which are not part of the core Java type model.

Language integrations can use this extension point to map collection-like, optional, or other language-specific types to one of the standard BeanDefinitionInjectionPoint implementations. Returning an empty optional lets the core processor treat the requested type as a single bean.

Since:
5.2.0
Author:
Graeme Rocher
  • Field Details

  • Method Details

    • resolve

      Optional<BeanDefinitionInjectionPoint<ClassElement>> resolve(ClassElement beanType, ClassElement requestedType, AnnotationMetadata annotationMetadata, String parameterName, VisitorContext visitorContext)
      Resolves an injection point for a requested type.
      Parameters:
      beanType - The bean declaring the injection point
      requestedType - The requested type
      annotationMetadata - The injection point annotation metadata
      parameterName - The parameter, field, or property name
      visitorContext - The visitor context
      Returns:
      A standard injection point, or empty when the resolver does not support the requested type