Interface ClassPathScanner
- All Known Implementing Classes:
ComponentClassPathScanner
,ConfigurationClassPathScanner
,ServiceClassPathScanner
public interface ClassPathScanner
Defines an interface for scanning the classpath to discover classes.
Implementations of this interface are responsible for scanning the classpath
and returning a set of discovered classes.
Then, add annotation @BeanProcessor and Bring will automatically pick it up.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends Annotation> Retrieves the annotation type that the scanner is designed to search for.scan()
Scans the classpath to discover classes.
-
Method Details
-
scan
Scans the classpath to discover classes.- Returns:
- a set of classes discovered during the scan
-
getAnnotation
Class<? extends Annotation> getAnnotation()Retrieves the annotation type that the scanner is designed to search for.- Returns:
- The
Class
object representing the annotation type.
-