public Set<String> scan(){
  initPatterns();
  List<String> roots=packagePatterns.getRoots();
  InternalScanner scanner=new InternalScanner(getClassLoader());
  Set<String> exports=scanner.findInPackages(new PatternTest(),roots.toArray(new String[roots.size()]));
  return exports;
}

public Set < String > scan ( ) { initPatterns ( ) ; List < String > roots = packagePatterns . getRoots ( ) ; InternalScanner scanner = new InternalScanner ( getClassLoader ( ) ) ; Set < String > exports = scanner . findInPackages ( new PatternTest ( ) , roots . toArray ( new String [ roots . size ( ) ] ) ) ; return exports ; }
scans the classloader as configured .
