public class ClassUtil extends Object
Constructor and Description |
---|
ClassUtil() |
Modifier and Type | Method and Description |
---|---|
static <T> Class<T> |
classForName(String className,
List<ClassLoader> additionalClassLoaders) |
static URLClassLoader |
createProjectClassLoader(org.apache.maven.project.MavenProject project,
io.fabric8.maven.docker.util.Logger 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
IOException
public static Set<String> getResources(String resource, List<ClassLoader> additionalClassLoaders) throws IOException
IOException
public 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 createProjectClassLoader(org.apache.maven.project.MavenProject project, io.fabric8.maven.docker.util.Logger log)
Copyright © 2018. All rights reserved.