Class ClassPath

java.lang.Object
com.google.common.reflect.ClassPath

public final class ClassPath extends Object
Scans the source of a ClassLoader and finds all loadable classes and resources.

Prefer ClassGraph over ClassPath

We recommend using ClassGraph instead of ClassPath. ClassGraph improves upon ClassPath in several ways, including addressing many of its limitations. Limitations of ClassPath include:

In the case of directory classloaders, symlinks are supported but cycles are not traversed. This guarantees discovery of each unique loadable resource. However, not all possible aliases for resources on cyclic paths will be listed.

Since:
14.0
Author:
Ben Yu