List of usage examples for org.springframework.core.type AnnotationMetadata hasMetaAnnotation
default boolean hasMetaAnnotation(String metaAnnotationName)
From source file:br.com.caelum.vraptor.ioc.spring.ComponentTypeFilter.java
public boolean match(MetadataReader metadataReader, MetadataReaderFactory metadataReaderFactory) throws IOException { AnnotationMetadata metadata = metadataReader.getAnnotationMetadata(); for (Class<? extends Annotation> annotationType : annotationTypes) { if (metadata.hasAnnotation(annotationType.getName())) { return true; }//from w w w.ja v a 2 s . com } return metadata.hasMetaAnnotation(Stereotype.class.getName()); }