Package com.querydsl.codegen
Class ClassPathUtils
java.lang.Object
com.querydsl.codegen.ClassPathUtils
ClassPathUtils provides classpath scanning functionality- Author:
- tiwe
-
Method Summary
Modifier and TypeMethodDescriptionstatic Class<?>safeClassForName(ClassLoader classLoader, String className) Get the class for the given className via the given classLoaderscanPackage(ClassLoader classLoader, Package pkg) Return the classes from the given package and subpackages using the supplied classloaderscanPackage(ClassLoader classLoader, String pkg) Return the classes from the given package and subpackages using the supplied classloader
-
Method Details
-
scanPackage
Return the classes from the given package and subpackages using the supplied classloader- Parameters:
classLoader- classloader to be usedpkg- package to scan- Returns:
- set of found classes
- Throws:
IOException
-
scanPackage
Return the classes from the given package and subpackages using the supplied classloader- Parameters:
classLoader- classloader to be usedpkg- package to scan- Returns:
- set of found classes
- Throws:
IOException
-
safeClassForName
Get the class for the given className via the given classLoader- Parameters:
classLoader- classloader to be usedclassName- fully qualified class name- Returns:
Classinstance matching the class name or null if not found
-