public class ClassUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T> Class<T> |
classForName(String className,
List<ClassLoader> additionalClassLoaders) |
static URLClassLoader |
createClassLoader(List<String> classpathElements,
String... paths) |
static URLClassLoader |
createProjectClassLoader(List<String> elements,
KitLogger log) |
static List<String> |
findMainClasses(File rootDir)
Find all classes below a certain directory which contain
main() classes
|
static Set<String> |
getResources(String resource) |
static Set<String> |
getResources(String resource,
List<ClassLoader> additionalClassLoaders) |
public static Set<String> getResources(String resource) throws IOException
IOExceptionpublic static Set<String> getResources(String resource, List<ClassLoader> additionalClassLoaders) throws IOException
IOExceptionpublic static <T> Class<T> classForName(String className, List<ClassLoader> additionalClassLoaders)
public static List<String> findMainClasses(File rootDir) throws IOException
rootDir - the directory to start fromIOException - if something goes wrongpublic static URLClassLoader createClassLoader(List<String> classpathElements, String... paths)
public static URLClassLoader createProjectClassLoader(List<String> elements, KitLogger log)
Copyright © 2024. All rights reserved.