public static URLPackageScanner newInstance ( boolean addRecursively , final ClassLoader classLoader , final Callback callback , final String packageName ) { Validate . notNull ( packageName , "Package name must be specified" ) ; Validate . notNull ( addRecursively , "AddRecursively must be specified" ) ; Validate . notNull ( classLoader , "ClassLoader must be specified" ) ; Validate . notNull ( callback , "Callback must be specified" ) ; return new URLPackageScanner ( packageName , addRecursively , classLoader , callback ) ; }
Factory method to create an instance of URLPackageScanner .