public static List < String > scanAsList ( final Class < ? extends Annotation > clas , final String ... basePackage ) { final List < String > classes = new ArrayList <> ( ) ; scan ( clas , basePackage , new AnnotationHandler ( ) { @ Override public void handleAnnotationFound ( String className ) { classes . add ( className ) ; } } ) ; return classes ; }
Scan as list .