public final class ClassPathUtils extends Object
ClassPathUtils
provides classpath scanning functionalityModifier and Type | Method and Description |
---|---|
static Class<?> |
safeClassForName(ClassLoader classLoader,
String className)
Get the class for the given className via the given classLoader
|
static Set<Class<?>> |
scanPackage(ClassLoader classLoader,
Package pkg)
Return the classes from the given package and subpackages using the supplied classloader
|
static Set<Class<?>> |
scanPackage(ClassLoader classLoader,
String pkg)
Return the classes from the given package and subpackages using the supplied classloader
|
public static Set<Class<?>> scanPackage(ClassLoader classLoader, Package pkg) throws IOException
classLoader
- classloader to be usedpkg
- package to scanIOException
public static Set<Class<?>> scanPackage(ClassLoader classLoader, String pkg) throws IOException
classLoader
- classloader to be usedpkg
- package to scanIOException
public static Class<?> safeClassForName(ClassLoader classLoader, String className)
classLoader
- classloader to be usedclassName
- fully qualified class nameClass
instance matching the class name or null if not foundCopyright © 2007–2016 Querydsl. All rights reserved.