public class DirectoryClassLocator extends Object implements ClassLocator
| Constructor and Description |
|---|
DirectoryClassLocator() |
DirectoryClassLocator(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 directory.
|
public DirectoryClassLocator()
public DirectoryClassLocator(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 directorypackageName - The package name for classes found inside the directoryclassLoader - a ClassLoader that is used to load a classesCopyright © 2004–2019 OpenL Tablets. All rights reserved.