Package com.sun.faces.config
Class JavaClassScanningAnnotationScanner
java.lang.Object
com.sun.faces.spi.AnnotationProvider
com.sun.faces.config.AnnotationScanner
com.sun.faces.config.JavaClassScanningAnnotationScanner
public class JavaClassScanningAnnotationScanner
extends com.sun.faces.config.AnnotationScanner
This class is responsible for scanning the class file bytes of
classes contained within the web application for any of the known
Faces configuration Annotations:
- javax.faces.component.FacesBehavior
- javax.faces.render.FacesBehaviorRenderer
- javax.faces.component.FacesComponent
- javax.faces.convert.FacesConverter
- javax.faces.validator.FacesValidator
- javax.faces.render.FacesRenderer
- javax.faces.bean.ManagedBean
- javax.faces.event.NamedEvent
-
Field Summary
Fields inherited from class com.sun.faces.config.AnnotationScanner
FACES_ANNOTATION_TYPE, FACES_ANNOTATIONS
Fields inherited from class com.sun.faces.spi.AnnotationProvider
sc, wrappedAnnotationProvider
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a newAnnotationScanner
instance. -
Method Summary
Modifier and TypeMethodDescriptionMap<Class<? extends Annotation>,
Set<Class<?>>> getAnnotatedClasses
(Set<URI> uris) Methods inherited from class com.sun.faces.config.AnnotationScanner
getClasspathPackages, getWebInfClassesPackages, isAnnotationScanPackagesSet, processClass, processClass, processClassList, processJar, processScripts
-
Constructor Details
-
JavaClassScanningAnnotationScanner
Creates a newAnnotationScanner
instance.- Parameters:
sc
- theServletContext
for the application to be scanned
-
-
Method Details
-
getAnnotatedClasses
- Specified by:
getAnnotatedClasses
in classcom.sun.faces.spi.AnnotationProvider
- Returns:
- a
Map
of classes mapped to a specific annotation type. If no annotations are present, or the application is consideredmetadata-complete
null
will be returned.
-