public class ResourceFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ResourceFinder.Condition |
| Modifier and Type | Field and Description |
|---|---|
static ResourceFinder.Condition |
isMarkdown |
(package private) static org.slf4j.Logger |
log |
| Constructor and Description |
|---|
ResourceFinder() |
| Modifier and Type | Method and Description |
|---|---|
private static List<String> |
findResources(File directory,
String packageName,
ResourceFinder.Condition cond)
Recursive method used to find all classes in a given directory and
subdirs.
|
static List<String> |
findResources(JarFile jar,
String packageName,
ResourceFinder.Condition cond) |
static String[] |
getResource(ResourceFinder.Condition c) |
static String[] |
getResources(String packageName,
ResourceFinder.Condition cond)
Scans all classes accessible from the context class loader which belong
to the given package and subpackages.
|
static org.slf4j.Logger log
public static final ResourceFinder.Condition isMarkdown
public static String[] getResource(ResourceFinder.Condition c) throws Exception
Exceptionpublic static String[] getResources(String packageName, ResourceFinder.Condition cond) throws ClassNotFoundException, IOException
packageName - The base packageClassNotFoundExceptionIOExceptionpublic static List<String> findResources(JarFile jar, String packageName, ResourceFinder.Condition cond) throws ClassNotFoundException
ClassNotFoundExceptionprivate static List<String> findResources(File directory, String packageName, ResourceFinder.Condition cond) throws ClassNotFoundException
directory - The base directorypackageName - The package name for classes found inside the base directoryClassNotFoundExceptionCopyright © 2018. All rights reserved.