public final class ClassFinder<T> extends Object
Modifier and Type | Method and Description |
---|---|
ClassFinder<T> |
any()
In case of multiple
having(Class) calls, whether to check any one annotation (by
default all annotations are checked). |
ClassFinder<T> |
byURL(String pattern)
Find with the given URL pattern.
|
Set<Class<? extends T>> |
find()
Find the classes.
|
ClassFinder<T> |
having(Class<? extends Annotation> annotation)
Only search classes with the given annotation.
|
ClassFinder<?> |
using(ClassLoader loader)
Search using the given class loader.
|
ClassFinder<T> |
within(String packageName)
Only search within the given package name.
|
public ClassFinder<T> byURL(String pattern)
pattern
- the URL patternpublic ClassFinder<T> within(String packageName)
packageName
- the package namepublic ClassFinder<?> using(ClassLoader loader)
loader
- the class loaderpublic ClassFinder<T> having(Class<? extends Annotation> annotation)
annotation
- the annotation to checkpublic ClassFinder<T> any()
having(Class)
calls, whether to check any one annotation (by
default all annotations are checked).