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(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.util.Collection<java.net.URL> urls) |
ClassFinder(java.lang.ClassLoader classLoader,
java.net.URL url) |
ClassFinder(java.util.List<java.lang.Class> classes) |
Modifier and Type | Method and Description |
---|---|
protected java.net.URL |
getResource(java.lang.String className) |
protected java.lang.Class<?> |
loadClass(java.lang.String fixedName) |
protected void |
readClassDef(java.lang.String className) |
findAnnotatedClasses, findAnnotatedConstructors, findAnnotatedFields, findAnnotatedMethods, findAnnotatedPackages, findClassesInPackage, findInheritedAnnotatedClasses, getAnnotationInfos, getClassesNotLoaded, isAnnotationPresent, 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
protected void readClassDef(java.lang.String className)
Copyright © 2005-2012. All Rights Reserved.