public class ClassFinder extends AbstractFinder
AbstractFinder.Annotatable, AbstractFinder.AnnotationInfo, AbstractFinder.ClassInfo, AbstractFinder.FieldInfo, AbstractFinder.GenericAwareInfoBuildingVisitor, AbstractFinder.Info, AbstractFinder.InfoBuildingVisitor, AbstractFinder.MethodInfo, AbstractFinder.PackageInfoclassInfos| Constructor and Description |
|---|
ClassFinder(Class... classes) |
ClassFinder(ClassLoader classLoader)
Creates a ClassFinder that will search the urls in the specified classloader
excluding the urls in the classloader's parent.
|
ClassFinder(ClassLoader classLoader,
boolean excludeParent)
Creates a ClassFinder that will search the urls in the specified classloader.
|
ClassFinder(ClassLoader classLoader,
ClassLoader exclude)
Creates a ClassFinder that will search the urls in the specified classloader excluding
the urls in the 'exclude' classloader.
|
ClassFinder(ClassLoader classLoader,
Collection<URL> urls) |
ClassFinder(ClassLoader classLoader,
URL url) |
ClassFinder(List<Class> classes) |
| Modifier and Type | Method and Description |
|---|---|
protected URL |
getResource(String className) |
protected Class<?> |
loadClass(String fixedName) |
protected void |
readClassDef(String className) |
findAnnotatedClasses, findAnnotatedConstructors, findAnnotatedFields, findAnnotatedMethods, findAnnotatedPackages, findClassesInPackage, findInheritedAnnotatedClasses, getAnnotationInfos, getClassesNotLoaded, isAnnotationPresent, readClassDefpublic ClassFinder(ClassLoader classLoader) throws Exception
classLoader - source of classes to scanException - if something goes wrongpublic ClassFinder(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 ClassFinder(ClassLoader classLoader, ClassLoader exclude) throws Exception
classLoader - source of classes to scanexclude - source of classes to exclude from scanningException - if something goes wrongpublic ClassFinder(ClassLoader classLoader, URL url)
public ClassFinder(ClassLoader classLoader, Collection<URL> urls)
public ClassFinder(Class... classes)
public ClassFinder(List<Class> classes)
protected URL getResource(String className)
getResource in class AbstractFinderprotected Class<?> loadClass(String fixedName) throws ClassNotFoundException
loadClass in class AbstractFinderClassNotFoundExceptionprotected void readClassDef(String className)
Copyright © 2005–2014. All rights reserved.