public class ClassFinder extends AbstractFinder
AbstractFinder.Annotatable, AbstractFinder.AnnotationInfo, AbstractFinder.ClassInfo, AbstractFinder.FieldInfo, AbstractFinder.GenericAwareInfoBuildingVisitor, AbstractFinder.Info, AbstractFinder.InfoBuildingVisitor, AbstractFinder.MethodInfo, AbstractFinder.PackageInfo
classInfos, originalInfos
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) |
findAnnotatedClasses, findAnnotatedConstructors, findAnnotatedFields, findAnnotatedMethods, findAnnotatedPackages, findClassesInPackage, findImplementations, findInheritedAnnotatedClasses, findMetaAnnotatedClasses, findMetaAnnotatedFields, findMetaAnnotatedMethods, findSubclasses, getAnnotatedClassNames, getAnnotationInfos, getClassesNotLoaded, isAnnotationPresent, link, readClassDef, readClassDef, readClassDef, 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)
protected URL getResource(String className)
getResource
in class AbstractFinder
protected Class<?> loadClass(String fixedName) throws ClassNotFoundException
loadClass
in class AbstractFinder
ClassNotFoundException
Copyright © 2005-2019. All Rights Reserved.