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.
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final BeanDefinitionInjectionPointResolverThe default resolver used by visitor contexts that do not provide a language-specific injection model. -
Method Summary
Modifier and TypeMethodDescriptionresolve(ClassElement beanType, ClassElement requestedType, AnnotationMetadata annotationMetadata, String parameterName, VisitorContext visitorContext) Resolves an injection point for a requested type.
-
Field Details
-
NONE
The default resolver used by visitor contexts that do not provide a language-specific injection model.
-
-
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 pointrequestedType- The requested typeannotationMetadata- The injection point annotation metadataparameterName- The parameter, field, or property namevisitorContext- The visitor context- Returns:
- A standard injection point, or empty when the resolver does not support the requested type
-