public class PackageHelper extends Object
| Constructor and Description |
|---|
PackageHelper() |
| Modifier and Type | Method and Description |
|---|---|
static List<Object> |
getClassesForPackage(String pckgname)
Attempts to list all the classes in the specified package as determined
by the context class loader
|
static List<Object> |
getClassesForPackage(String pckgname,
groovy.lang.GroovyClassLoader classLoader,
Function<String,Class<?>> classResolver)
Attempts to list all the classes in the specified package as determined
by the Groovy class loader classpath
|
static List<String> |
getClassNamesForPackage(String pckgname,
ClassLoader classLoader)
Attempts to list all the class names in the specified package as determined
by the Groovy class loader classpath
|
public static List<String> getClassNamesForPackage(String pckgname, ClassLoader classLoader)
pckgname - the package name to searchclassLoader - class loaderpublic static List<Object> getClassesForPackage(String pckgname, groovy.lang.GroovyClassLoader classLoader, Function<String,Class<?>> classResolver) throws ClassNotFoundException
pckgname - the package name to searchclassLoader - Groovy class loaderclassResolver - resolve class from class nameClassNotFoundException - if something went wrongpublic static List<Object> getClassesForPackage(String pckgname) throws ClassNotFoundException
pckgname - the package name to searchClassNotFoundException - if something went wrongCopyright © 2023. All rights reserved.