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
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 createProjectClassLoader(org.apache.maven.project.MavenProject project, io.fabric8.maven.docker.util.Logger log)
Copyright © 2016. All rights reserved.