@Override public Stream<Class> scan(Class<? extends Annotation> annotation, String... packages) { return annotationScanner.scan(annotation, packages); }
@Override public Stream<Class> scan(Class<? extends Annotation> annotation, String... packages) { return annotationScanner.scan(annotation, packages); }
@Override public Stream<Class> scan(Class<? extends Annotation> annotation) { return annotationScanner.scan(annotation, getPackages()); }
@Override public Stream<Class> scan(Class<? extends Annotation> annotation) { return annotationScanner.scan(annotation, getPackages()); }
/** * Scan the current environment for classes annotated with the given annotation. Use with care, repeated * invocations should be avoided for performance reasons. * * @param annotation The annotation to scan * @param packages The packages to scan * @return The classes */ default Stream<Class> scan(Class<? extends Annotation> annotation, String... packages) { ClassPathAnnotationScanner scanner = new ClassPathAnnotationScanner(getClassLoader()); return scanner.scan(annotation, Arrays.asList(packages)); }
/** * Scan the current environment for classes annotated with the given annotation. Use with care, repeated * invocations should be avoided for performance reasons. * * @param annotation The annotation to scan * @param packages The packages to scan * @return The classes */ default Stream<Class> scan(Class<? extends Annotation> annotation, String... packages) { ClassPathAnnotationScanner scanner = new ClassPathAnnotationScanner(getClassLoader()); return scanner.scan(annotation, Arrays.asList(packages)); }
/** * Scan the current environment for classes annotated with the given annotation. Use with care, repeated * invocations should be avoided for performance reasons. * * @param annotation The annotation to scan * @return The classes */ default Stream<Class> scan(Class<? extends Annotation> annotation) { ClassPathAnnotationScanner scanner = new ClassPathAnnotationScanner(getClassLoader()); return scanner.scan(annotation, getPackages()); }
/** * Scan the current environment for classes annotated with the given annotation. Use with care, repeated * invocations should be avoided for performance reasons. * * @param annotation The annotation to scan * @return The classes */ default Stream<Class> scan(Class<? extends Annotation> annotation) { ClassPathAnnotationScanner scanner = new ClassPathAnnotationScanner(getClassLoader()); return scanner.scan(annotation, getPackages()); }