Class ClassPathScannerImpl

    • Constructor Detail

      • ClassPathScannerImpl

        public ClassPathScannerImpl​(String packageName)
        Constructor accepting name of the java package. Components under this package and its subpackages are going to be scanned.
        Parameters:
        packageName - target package name; mandatory, must not be null
    • Method Detail

      • getTypesAnnotatedWith

        public Set<Class<?>> getTypesAnnotatedWith​(Class<? extends Annotation> annotation)
        Returns Set of all types annotated with the given annotation.
        Specified by:
        getTypesAnnotatedWith in interface ClassPathScanner
        Parameters:
        annotation - desired type annotation
        Returns:
        all types meeting annotation criteria