Package io.micronaut.core.io.scan
Interface AnnotationScanner
- All Known Implementing Classes:
BeanIntrospectionScanner
,ClassPathAnnotationScanner
public interface AnnotationScanner
Interface for classes that scan for classes with a given annotation.
- Since:
- 1.0
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptionScan the given packages.Scans the given package names.Scans the given package names.scan
(@NonNull Class<? extends Annotation> annotation, @NonNull Collection<String> packages) Scans the given package names.Scan the given packages.Scan the given packages.Scans the given package names.Scans the given package names.Scans the given package names.
-
Method Details
-
scan
@NonNull @NonNull Stream<Class<?>> scan(@NonNull @NonNull String annotation, @NonNull @NonNull String pkg) Scan the given packages.- Parameters:
annotation
- The annotation to scan forpkg
- The package to scan- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull String annotation, @NonNull @NonNull Package... packages) Scan the given packages.- Parameters:
annotation
- The annotation to scan forpackages
- The packages to scan- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull Class<? extends Annotation> annotation, @NonNull @NonNull Package... packages) Scans the given package names.- Parameters:
annotation
- The annotation to scanpackages
- The packages- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull Class<? extends Annotation> annotation, @NonNull @NonNull Package pkg) Scan the given packages.- Parameters:
annotation
- The annotation to scan forpkg
- The package to scan- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull String annotation, @NonNull @NonNull String... packages) Scans the given package names.- Parameters:
annotation
- The annotation name to scanpackages
- The package names- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull String annotation, @NonNull @NonNull Collection<String> packages) Scans the given package names.- Parameters:
annotation
- The annotation name to scanpackages
- The package names- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull Class<? extends Annotation> annotation, @NonNull @NonNull Collection<String> packages) Scans the given package names.- Parameters:
annotation
- The annotation name to scanpackages
- The package names- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull String annotation, @NonNull @NonNull Stream<String> packages) Scans the given package names.- Parameters:
annotation
- The annotation name to scanpackages
- The package names- Returns:
- A stream of classes
-
scan
@NonNull default @NonNull Stream<Class<?>> scan(@NonNull @NonNull Class<? extends Annotation> annotation, @NonNull @NonNull String... packages) Scans the given package names.- Parameters:
annotation
- The annotation to scanpackages
- The package names- Returns:
- A stream of classes
-