public ClassGraph whitelistClasspathElementsContainingResourcePath ( final String ... resourcePaths ) { for ( final String resourcePath : resourcePaths ) { final String resourcePathNormalized = WhiteBlackList . normalizePath ( resourcePath ) ; scanSpec . classpathElementResourcePathWhiteBlackList . addToWhitelist ( resourcePathNormalized ) ; } return this ; }
Whitelist classpath elements based on resource paths . Only classpath elements that contain resources with paths matching the whitelist will be scanned .