public class JarClassLocator extends Object implements ClassLocator
| Constructor and Description |
|---|
JarClassLocator() |
JarClassLocator(List<? extends LocatorExceptionHandler> handlers) |
| Modifier and Type | Method and Description |
|---|---|
void |
addExceptionHandler(LocatorExceptionHandler handler)
Add exception handler
|
Collection<Class<?>> |
getClasses(URL pathURL,
String packageName,
ClassLoader classLoader)
Find all classes in a given path.
|
public JarClassLocator()
public JarClassLocator(List<? extends LocatorExceptionHandler> handlers)
public void addExceptionHandler(LocatorExceptionHandler handler)
handler - exception handlerpublic Collection<Class<?>> getClasses(URL pathURL, String packageName, ClassLoader classLoader)
getClasses in interface ClassLocatorpathURL - path to the jarpackageName - The package name for classes found inside the pathclassLoader - a ClassLoader that is used to load a classesCopyright © 2004–2019 OpenL Tablets. All rights reserved.