protected boolean isCandidateComponent ( MetadataReader metadataReader ) throws IOException { for ( TypeFilter tf : this . excludeFilters ) { if ( tf . match ( metadataReader , this . metadataReaderFactory ) ) { return false ; } } for ( TypeFilter tf : this . includeFilters ) { if ( tf . match ( metadataReader , this . metadataReaderFactory ) ) { return true ; } } return false ; }
Determine whether the given class does not match any exclude filter and does match at least one include filter .