public class DefaultClassFinder extends Object implements ClassFinder
Modifier and Type | Class and Description |
---|---|
class |
DefaultClassFinder.InfoBuildingMethodVisitor |
class |
DefaultClassFinder.InfoBuildingVisitor |
class |
DefaultClassFinder.PackageInfo |
ClassFinder.Annotatable, ClassFinder.AnnotationInfo, ClassFinder.ClassInfo, ClassFinder.FieldInfo, ClassFinder.Info, ClassFinder.MethodInfo
Constructor and Description |
---|
DefaultClassFinder(Class... classes) |
DefaultClassFinder(ClassLoaderInterface classLoaderInterface,
Collection<URL> urls,
boolean extractBaseInterfaces,
Set<String> protocols,
Test<String> classNameFilter) |
DefaultClassFinder(List<Class> classes) |
Modifier and Type | Method and Description |
---|---|
List<Class> |
findAnnotatedClasses(Class<? extends Annotation> annotation) |
List<Constructor> |
findAnnotatedConstructors(Class<? extends Annotation> annotation) |
List<Field> |
findAnnotatedFields(Class<? extends Annotation> annotation) |
List<Method> |
findAnnotatedMethods(Class<? extends Annotation> annotation) |
List<Package> |
findAnnotatedPackages(Class<? extends Annotation> annotation) |
List<Class> |
findClasses() |
List<Class> |
findClasses(Test<ClassFinder.ClassInfo> test) |
List<Class> |
findClassesInPackage(String packageName,
boolean recursive) |
List<String> |
getClassesNotLoaded() |
ClassLoaderInterface |
getClassLoaderInterface() |
boolean |
isAnnotationPresent(Class<? extends Annotation> annotation) |
public DefaultClassFinder(ClassLoaderInterface classLoaderInterface, Collection<URL> urls, boolean extractBaseInterfaces, Set<String> protocols, Test<String> classNameFilter)
public DefaultClassFinder(Class... classes)
public ClassLoaderInterface getClassLoaderInterface()
getClassLoaderInterface
in interface ClassFinder
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
isAnnotationPresent
in interface ClassFinder
public List<String> getClassesNotLoaded()
getClassesNotLoaded
in interface ClassFinder
public List<Package> findAnnotatedPackages(Class<? extends Annotation> annotation)
findAnnotatedPackages
in interface ClassFinder
public List<Class> findAnnotatedClasses(Class<? extends Annotation> annotation)
findAnnotatedClasses
in interface ClassFinder
public List<Method> findAnnotatedMethods(Class<? extends Annotation> annotation)
findAnnotatedMethods
in interface ClassFinder
public List<Constructor> findAnnotatedConstructors(Class<? extends Annotation> annotation)
findAnnotatedConstructors
in interface ClassFinder
public List<Field> findAnnotatedFields(Class<? extends Annotation> annotation)
findAnnotatedFields
in interface ClassFinder
public List<Class> findClassesInPackage(String packageName, boolean recursive)
findClassesInPackage
in interface ClassFinder
public List<Class> findClasses(Test<ClassFinder.ClassInfo> test)
findClasses
in interface ClassFinder
public List<Class> findClasses()
findClasses
in interface ClassFinder
Copyright © 2000–2020 Apache Software Foundation. All rights reserved.