com.opensymphony.xwork2.util.finder
Class DefaultClassFinder
java.lang.Object
com.opensymphony.xwork2.util.finder.DefaultClassFinder
- All Implemented Interfaces:
- ClassFinder
public class DefaultClassFinder
- extends Object
- implements ClassFinder
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultClassFinder
public DefaultClassFinder(ClassLoaderInterface classLoaderInterface,
Collection<URL> urls,
boolean extractBaseInterfaces,
Set<String> protocols,
Test<String> classNameFilter)
DefaultClassFinder
public DefaultClassFinder(Class... classes)
DefaultClassFinder
public DefaultClassFinder(List<Class> classes)
getClassLoaderInterface
public ClassLoaderInterface getClassLoaderInterface()
- Specified by:
getClassLoaderInterface
in interface ClassFinder
isAnnotationPresent
public boolean isAnnotationPresent(Class<? extends Annotation> annotation)
- Specified by:
isAnnotationPresent
in interface ClassFinder
getClassesNotLoaded
public List<String> getClassesNotLoaded()
- Description copied from interface:
ClassFinder
- Returns a list of classes that could not be loaded in last invoked findAnnotated* method.
The list will only contain entries of classes whose byte code matched the requirements
of last invoked find* method, but were unable to be loaded and included in the results.
The list returned is unmodifiable. Once obtained, the returned list will be a live view of the
results from the last findAnnotated* method call.
This method is not thread safe.
- Specified by:
getClassesNotLoaded
in interface ClassFinder
- Returns:
- an unmodifiable live view of classes that could not be loaded in previous findAnnotated* call.
findAnnotatedPackages
public List<Package> findAnnotatedPackages(Class<? extends Annotation> annotation)
- Specified by:
findAnnotatedPackages
in interface ClassFinder
findAnnotatedClasses
public List<Class> findAnnotatedClasses(Class<? extends Annotation> annotation)
- Specified by:
findAnnotatedClasses
in interface ClassFinder
findAnnotatedMethods
public List<Method> findAnnotatedMethods(Class<? extends Annotation> annotation)
- Specified by:
findAnnotatedMethods
in interface ClassFinder
findAnnotatedConstructors
public List<Constructor> findAnnotatedConstructors(Class<? extends Annotation> annotation)
- Specified by:
findAnnotatedConstructors
in interface ClassFinder
findAnnotatedFields
public List<Field> findAnnotatedFields(Class<? extends Annotation> annotation)
- Specified by:
findAnnotatedFields
in interface ClassFinder
findClassesInPackage
public List<Class> findClassesInPackage(String packageName,
boolean recursive)
- Specified by:
findClassesInPackage
in interface ClassFinder
findClasses
public List<Class> findClasses(Test<ClassFinder.ClassInfo> test)
- Specified by:
findClasses
in interface ClassFinder
findClasses
public List<Class> findClasses()
- Specified by:
findClasses
in interface ClassFinder
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.