Top Deprecated
ClassGraph 4.8.179

Deprecated API


No API in this release is deprecated for removal.

Deprecated Item Summary

SinceDeprecated Item and Description

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistClasses
(final String...
The fully-qualified names of classes to reject (using '.' as a separator).
classNames
)

Use rejectClasses(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistClasspathElementsContainingResourcePath
(final String...
The resource paths which cause a classpath not to be scanned if any are present in a classpath element for the classpath element. May contain a wildcard glob ('*').
resourcePaths
)

Use rejectClasspathElementsContainingResourcePath(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistJars
(final String...
The leafnames of the jars that should be scanned (e.g. "badlib.jar"). May contain a wildcard glob ("badlib-*.jar").
jarLeafNames
)

Use rejectJars(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistLibOrExtJars
(final String...
The leafnames of the lib/ext jar(s) that should not be scanned (e.g. "jre/lib/badlib.jar"). May contain a wildcard glob ('*'). If you call this method with no parameters, all JRE/JDK "lib/" or "ext/" jars will be rejected.
jarLeafNames
)

Use rejectLibOrExtJars(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistModules
(final String...
The names of the modules that should not be scanned. May contain a wildcard glob ('*').
moduleNames
)

Use rejectModules(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistPackages
(final String...
The fully-qualified names of packages to reject (with '.' as a separator). May include a glob wildcard ('*').
packageNames
)

Use rejectPackages(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.blacklistPaths
(final String...
The paths to reject (with '/' as a separator). May include a glob wildcard ('*').
paths
)

Use rejectPaths(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistClasses
(final String...
The fully-qualified names of classes to scan (using '.' as a separator).
classNames
)

Use acceptClasses(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistClasspathElementsContainingResourcePath
(final String...
The resource paths, any of which must be present in a classpath element for the classpath element to be scanned. May contain a wildcard glob ('*').
resourcePaths
)

Use acceptClasspathElementsContainingResourcePath(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistJars
(final String...
The leafnames of the jars that should be scanned (e.g. "mylib.jar"). May contain a wildcard glob ("mylib-*.jar").
jarLeafNames
)

Use acceptJars(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistLibOrExtJars
(final String...
The leafnames of the lib/ext jar(s) that should be scanned (e.g. "mylib.jar"). May contain a wildcard glob ('*'). Note that if you call this method with no parameters, all JRE/JDK "lib/" or "ext/" jars will be accepted.
jarLeafNames
)

Use acceptLibOrExtJars(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistModules
(final String...
The names of the modules that should be scanned. May contain a wildcard glob ('*').
moduleNames
)

Use acceptModules(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistPackages
(final String...
The fully-qualified names of packages to scan (using '.' as a separator). May include a glob wildcard ('*').
packageNames
)

Use acceptPackages(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistPackagesNonRecursive
(final String...
The fully-qualified names of packages to scan (with '.' as a separator). May not include a glob wildcard ('*').
packageNames
)

Use acceptPackagesNonRecursive(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistPaths
(final String...
The paths to scan, relative to the package root of the classpath element (with '/' as a separator). May include a glob wildcard ('*').
paths
)

Use acceptPaths(String...) instead.

Returns:

this (for method chaining).
io.github.classgraph.ClassGraph.whitelistPathsNonRecursive
(final String...
The paths to scan, relative to the package root of the classpath element (with '/' as a separator). May not include a glob wildcard ('*').
paths
)

Use acceptPathsNonRecursive(String...) instead.

Returns:

The field modifiers, as a string.
io.github.classgraph.FieldInfo.getModifierStr
()

Use getModifiersStr() instead.

io.github.classgraph.ResourceList.forEachByteArray(final ResourceList.ByteArrayConsumer byteArrayConsumer, final boolean
if true, any IOException thrown while trying to load any of the resources will be silently ignored.
ignoreIOExceptions
)

Use forEachByteArrayIgnoringIOException(ByteArrayConsumer) or forEachByteArrayThrowingIOException(ByteArrayConsumerThrowsIOException) instead.

io.github.classgraph.ResourceList.forEachByteBuffer(final ResourceList.ByteBufferConsumer byteBufferConsumer, final boolean
if true, any IOException thrown while trying to load any of the resources will be silently ignored.
ignoreIOExceptions
)

Use forEachByteBufferIgnoringIOException(ByteBufferConsumer) or forEachByteBufferThrowingIOException(ByteBufferConsumerThrowsIOException) instead.

io.github.classgraph.ResourceList.forEachInputStream(final ResourceList.InputStreamConsumer inputStreamConsumer, final boolean
if true, any IOException thrown while trying to load any of the resources will be silently ignored.
ignoreIOExceptions
)

Use forEachInputStreamIgnoringIOException(InputStreamConsumer) or forEachInputStreamThrowingIOException(InputStreamConsumerThrowsIOException) instead.

Returns:

A list of all resources found in any classpath element, whether in accepted packages or not (as long as the resource is not rejected), that have the given path, relative to the package root of the classpath element. May match several resources, up to one per classpath element.
io.github.classgraph.ScanResult.getResourcesWithPathIgnoringWhitelist
(final String
A complete resource path, relative to the classpath entry package root.
resourcePath
)

Use getResourcesWithPathIgnoringAccept(String) instead.