Spring Framework DependencyDescriptor - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework DependencyDescriptor class.

This code example shows how to use the following methods:fallbackMatchAllowed, getResolvableType
	@SuppressWarnings("unchecked") 
	public QualifierAnnotationAutowireCandidateResolver() { 
		this.qualifierTypes.add(Qualifier.class);
		try { 
			this.qualifierTypes.add((Class<? extends Annotation>) ClassUtils.forName("javax.inject.Qualifier",
							QualifierAnnotationAutowireCandidateResolver.class.getClassLoader()));
		} 
		catch (ClassNotFoundException ex) {
			// JSR-330 API not available - simply skip. 
		} 
	} 
 
	/** 
	 * Create a new QualifierAnnotationAutowireCandidateResolver 
	 * for the given qualifier annotation type. 
	 * @param qualifierType the qualifier annotation to look for 
	 */ 
	public QualifierAnnotationAutowireCandidateResolver(Class<? extends Annotation> qualifierType) {
		Assert.notNull(qualifierType, "'qualifierType' must not be null");
		this.qualifierTypes.add(qualifierType);

5
CodeRank
See Code Examples for Spring Framework DependencyDescriptor Methods: