IAnnotationFinder
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 | Description |
---|---|
ClassFinder(java.lang.Class<?>... classes) |
|
ClassFinder(java.lang.ClassLoader classLoader) |
Creates a ClassFinder that will search the urls in the specified classloader
excluding the urls in the classloader's parent.
|
ClassFinder(java.lang.ClassLoader classLoader,
boolean excludeParent) |
Creates a ClassFinder that will search the urls in the specified classloader.
|
ClassFinder(java.lang.ClassLoader classLoader,
java.lang.ClassLoader exclude) |
Creates a ClassFinder that will search the urls in the specified classloader excluding
the urls in the 'exclude' classloader.
|
ClassFinder(java.lang.ClassLoader classLoader,
java.net.URL url) |
|
ClassFinder(java.lang.ClassLoader classLoader,
java.util.Collection<java.net.URL> urls) |
|
ClassFinder(java.util.List<java.lang.Class<?>> classes) |
Modifier and Type | Method | Description |
---|---|---|
protected java.net.URL |
getResource(java.lang.String className) |
|
protected java.lang.Class<?> |
loadClass(java.lang.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(java.lang.ClassLoader classLoader) throws java.lang.Exception
classLoader
- source of classes to scanjava.lang.Exception
- if something goes wrongpublic ClassFinder(java.lang.ClassLoader classLoader, boolean excludeParent) throws java.lang.Exception
classLoader
- source of classes to scanexcludeParent
- Allegedly excludes classes from parent classloader, whatever that might meanjava.lang.Exception
- if something goes wrong.public ClassFinder(java.lang.ClassLoader classLoader, java.lang.ClassLoader exclude) throws java.lang.Exception
classLoader
- source of classes to scanexclude
- source of classes to exclude from scanningjava.lang.Exception
- if something goes wrongpublic ClassFinder(java.lang.ClassLoader classLoader, java.net.URL url)
public ClassFinder(java.lang.ClassLoader classLoader, java.util.Collection<java.net.URL> urls)
public ClassFinder(java.lang.Class<?>... classes)
public ClassFinder(java.util.List<java.lang.Class<?>> classes)
protected java.net.URL getResource(java.lang.String className)
getResource
in class AbstractFinder
protected java.lang.Class<?> loadClass(java.lang.String fixedName) throws java.lang.ClassNotFoundException
loadClass
in class AbstractFinder
java.lang.ClassNotFoundException
Copyright © 2005–2018. All rights reserved.