Package com.google.common.reflect
Class ClassPath
java.lang.Object
com.google.common.reflect.ClassPath
Deprecated.
The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023
Scans the source of a
ClassLoader and finds all loadable classes and resources.- Since:
- 14.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classDeprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023static classDeprecated.The Google Guava Core Libraries are deprecated and will not be part of the AEM SDK after April 2023 -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassPathfrom(ClassLoader classloader) Deprecated.Returns aClassPathrepresenting all classes and resources loadable fromclassloaderand its parent class loaders.Deprecated.Returns all resources loadable from the current class path, including the class files of all loadable classes but excluding the "META-INF/MANIFEST.MF" file.Deprecated.Returns all top level classes loadable from the current class path.getTopLevelClasses(String packageName) Deprecated.Returns all top level classes whose package name ispackageName.getTopLevelClassesRecursive(String packageName) Deprecated.Returns all top level classes whose package name ispackageNameor starts withpackageNamefollowed by a '.'.
-
Method Details
-
from
Deprecated.Returns aClassPathrepresenting all classes and resources loadable fromclassloaderand its parent class loaders.Currently only
URLClassLoaderand onlyfile://urls are supported.- Throws:
IOException- if the attempt to read class path resources (jar files or directories) failed.
-
getResources
Deprecated.Returns all resources loadable from the current class path, including the class files of all loadable classes but excluding the "META-INF/MANIFEST.MF" file. -
getTopLevelClasses
Deprecated.Returns all top level classes loadable from the current class path. -
getTopLevelClasses
Deprecated.Returns all top level classes whose package name ispackageName. -
getTopLevelClassesRecursive
Deprecated.Returns all top level classes whose package name ispackageNameor starts withpackageNamefollowed by a '.'.
-