Package org.apache.struts2.convention
Class DefaultClassFinder
java.lang.Object
org.apache.struts2.convention.DefaultClassFinder
- All Implemented Interfaces:
ClassFinder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
class
Nested classes/interfaces inherited from interface org.apache.struts2.util.finder.ClassFinder
ClassFinder.Annotatable, ClassFinder.AnnotationInfo, ClassFinder.ClassInfo, ClassFinder.FieldInfo, ClassFinder.Info, ClassFinder.MethodInfo, ClassFinder.PackageInfo
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultClassFinder
(ClassLoaderInterface classLoaderInterface, Collection<URL> urls, boolean extractBaseInterfaces, Set<String> protocols, Test<String> classNameFilter) -
Method Summary
Modifier and TypeMethodDescriptionfindAnnotatedClasses
(Class<? extends Annotation> annotation) List<Constructor<?>>
findAnnotatedConstructors
(Class<? extends Annotation> annotation) findAnnotatedFields
(Class<? extends Annotation> annotation) findAnnotatedMethods
(Class<? extends Annotation> annotation) findAnnotatedPackages
(Class<? extends Annotation> annotation) findClasses
(Test<ClassFinder.ClassInfo> test) findClassesInPackage
(String packageName, boolean recursive) boolean
isAnnotationPresent
(Class<? extends Annotation> annotation)
-
Constructor Details
-
DefaultClassFinder
public DefaultClassFinder(ClassLoaderInterface classLoaderInterface, Collection<URL> urls, boolean extractBaseInterfaces, Set<String> protocols, Test<String> classNameFilter)
-
-
Method Details
-
getClassLoaderInterface
- Specified by:
getClassLoaderInterface
in interfaceClassFinder
-
isAnnotationPresent
- Specified by:
isAnnotationPresent
in interfaceClassFinder
-
getClassesNotLoaded
- Specified by:
getClassesNotLoaded
in interfaceClassFinder
-
findAnnotatedPackages
- Specified by:
findAnnotatedPackages
in interfaceClassFinder
-
findAnnotatedClasses
- Specified by:
findAnnotatedClasses
in interfaceClassFinder
-
findAnnotatedMethods
- Specified by:
findAnnotatedMethods
in interfaceClassFinder
-
findAnnotatedConstructors
- Specified by:
findAnnotatedConstructors
in interfaceClassFinder
-
findAnnotatedFields
- Specified by:
findAnnotatedFields
in interfaceClassFinder
-
findClassesInPackage
- Specified by:
findClassesInPackage
in interfaceClassFinder
-
findClasses
- Specified by:
findClasses
in interfaceClassFinder
-
findClasses
- Specified by:
findClasses
in interfaceClassFinder
-