Java Code Examples for org.springframework.beans.factory.config.DependencyDescriptor#getAnnotations()
The following examples show how to use
org.springframework.beans.factory.config.DependencyDescriptor#getAnnotations() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: QualifierAnnotationAutowireCandidateResolver.java From spring-analysis-note with MIT License | 5 votes |
/** * Determine whether the given dependency declares a qualifier annotation. * @see #isQualifier(Class) * @see Qualifier */ @Override public boolean hasQualifier(DependencyDescriptor descriptor) { for (Annotation ann : descriptor.getAnnotations()) { if (isQualifier(ann.annotationType())) { return true; } } return false; }
Example 2
Source File: QualifierAnnotationAutowireCandidateResolver.java From java-technology-stack with MIT License | 5 votes |
/** * Determine whether the given dependency declares a qualifier annotation. * @see #isQualifier(Class) * @see Qualifier */ @Override public boolean hasQualifier(DependencyDescriptor descriptor) { for (Annotation ann : descriptor.getAnnotations()) { if (isQualifier(ann.annotationType())) { return true; } } return false; }