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.EventListenerSegment, AbstractBeanResolutionContext.FieldSegment, AbstractBeanResolutionContext.MethodArgumentSegment, AbstractBeanResolutionContext.MethodSegment
An injection point as a point in a class definition where dependency injection is required.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Field Summary
Fields inherited from interface AnnotationSource
EMPTY -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisInjectionRequired(AnnotationMetadata annotationMetadata) Check whether injection is required for the given metadata.Methods inherited from interface AnnotationMetadataProvider
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, getTargetAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByTypeMethods inherited from interface AnnotationSource
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
-
Method Details
-
getDeclaringBean
BeanDefinition<T> getDeclaringBean()- Returns:
- The bean that declares this injection point
-
getDeclaringBeanQualifier
-
isInjectionRequired
Check whether injection is required for the given metadata.- Parameters:
annotationMetadata- The annotation metadata.- Returns:
- True if injection is required.
- Since:
- 4.5.0
-