public class AnnotationFinder extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AnnotationFinder.Filter |
static class |
AnnotationFinder.FoundException |
static class |
AnnotationFinder.NotFoundException |
class |
AnnotationFinder.Visitor |
| Modifier and Type | Field and Description |
|---|---|
static int |
classes |
| Constructor and Description |
|---|
AnnotationFinder(ClassLoader classLoader)
Creates a ClassFinder that will search the urls in the specified classloader
excluding the urls in the classloader's parent.
|
AnnotationFinder(ClassLoader classLoader,
boolean excludeParent)
Creates a ClassFinder that will search the urls in the specified classloader.
|
AnnotationFinder(ClassLoader classLoader,
ClassLoader exclude)
Creates a ClassFinder that will search the urls in the specified classloader excluding
the urls in the 'exclude' classloader.
|
AnnotationFinder(ClassLoader classLoader,
Collection<URL> urls) |
AnnotationFinder(ClassLoader classLoader,
URL url) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
find(AnnotationFinder.Filter filter) |
List<String> |
getClassesNotLoaded()
Returns a list of classes that could not be loaded in last invoked findAnnotated* method.
|
public AnnotationFinder(ClassLoader classLoader) throws Exception
classLoader - source of classes to scanException - if something goes wrongpublic AnnotationFinder(ClassLoader classLoader, boolean excludeParent) throws Exception
classLoader - source of classes to scanexcludeParent - Allegedly excludes classes from parent classloader, whatever that might meanException - if something goes wrong.public AnnotationFinder(ClassLoader classLoader, ClassLoader exclude) throws Exception
classLoader - source of classes to scanexclude - source of classes to exclude from scanningException - if something goes wrongpublic AnnotationFinder(ClassLoader classLoader, URL url)
public AnnotationFinder(ClassLoader classLoader, Collection<URL> urls)
public List<String> getClassesNotLoaded()
public boolean find(AnnotationFinder.Filter filter)
Copyright © 1999–2014 The Apache Software Foundation. All rights reserved.