Class ConfigurationClassPathScanner
java.lang.Object
com.bobocode.bring.core.context.scaner.impl.ConfigurationClassPathScanner
- All Implemented Interfaces:
ClassPathScanner
This class implements the ClassPathScanner interface to scan for classes annotated with Configuration.
It uses Reflections to perform classpath scanning.
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionClass
<? extends Annotation> Gets the annotation type used for scanning.scan()
Scans the classpath for classes annotated with Configuration.
-
Field Details
-
reflections
private final org.reflections.Reflections reflections
-
-
Constructor Details
-
ConfigurationClassPathScanner
public ConfigurationClassPathScanner()
-
-
Method Details
-
scan
Scans the classpath for classes annotated with Configuration.- Specified by:
scan
in interfaceClassPathScanner
- Returns:
- A Set of Class objects representing types annotated with Configuration.
-
getAnnotation
Gets the annotation type used for scanning.- Specified by:
getAnnotation
in interfaceClassPathScanner
- Returns:
- The Class object representing the Configuration annotation.
-