public class ClassFinder extends AbstractFinder
AbstractFinder.Annotatable, AbstractFinder.AnnotationInfo, AbstractFinder.ClassInfo, AbstractFinder.FieldInfo, AbstractFinder.GenericAwareInfoBuildingVisitor, AbstractFinder.Info, AbstractFinder.InfoBuildingVisitor, AbstractFinder.MethodInfo, AbstractFinder.PackageInfo
classInfos
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, readClassDef
public 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 AbstractFinder
protected Class<?> loadClass(String fixedName) throws ClassNotFoundException
loadClass
in class AbstractFinder
ClassNotFoundException
protected void readClassDef(String className)
Copyright © 2005–2014. All rights reserved.