Interface InjectionPoint<T>

Type Parameters:
T - the bean type
All Superinterfaces:
AnnotationMetadataProvider, AnnotationSource
All Known Subinterfaces:
ArgumentInjectionPoint<B,T>, CallableInjectionPoint<T>, ConstructorInjectionPoint<T>, FieldInjectionPoint<B,T>, MethodInjectionPoint<B,T>
All Known Implementing Classes:
AbstractBeanResolutionContext.AnnotationSegment, AbstractBeanResolutionContext.ConstructorArgumentSegment, AbstractBeanResolutionContext.ConstructorSegment, AbstractBeanResolutionContext.FieldSegment, AbstractBeanResolutionContext.MethodArgumentSegment, AbstractBeanResolutionContext.MethodSegment

public interface InjectionPoint<T> extends AnnotationMetadataProvider
An injection point as a point in a class definition where dependency injection is required.
Since:
1.0
Author:
Graeme Rocher
  • Method Details

    • getDeclaringBean

      @NonNull @NonNull BeanDefinition<T> getDeclaringBean()
      Returns:
      The bean that declares this injection point
    • getDeclaringBeanQualifier

      @Nullable default @Nullable Qualifier<T> getDeclaringBeanQualifier()
      Returns:
      The qualifier of the bean that declares this injection point
      Since:
      4.5.0
    • isInjectionRequired

      static boolean isInjectionRequired(AnnotationMetadata annotationMetadata)
      Check whether injection is required for the given metadata.
      Parameters:
      annotationMetadata - The annotation metadata.
      Returns:
      True if injection is required.
      Since:
      4.5.0