public Set < String > scan ( ) { // Initialize the pattern factories initPatterns ( ) ; // Determine which packages to start from List < String > roots = packagePatterns . getRoots ( ) ; InternalScanner scanner = new InternalScanner ( getClassLoader ( ) ) ; // Kick off the scanning Set < String > exports = scanner . findInPackages ( new PatternTest ( ) , roots . toArray ( new String [ roots . size ( ) ] ) ) ; return exports ; }
Scans the classloader as configured .