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

    Constructors
    Constructor
    Description
    Creates a new AnnotationScanner instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<Class<? extends Annotation>,Set<Class<?>>>
     

    Methods inherited from class com.sun.faces.config.AnnotationScanner

    getClasspathPackages, getWebInfClassesPackages, isAnnotationScanPackagesSet, processClass, processClass, processClassList, processJar, processScripts

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • JavaClassScanningAnnotationScanner

      public JavaClassScanningAnnotationScanner(ServletContext sc)
      Creates a new AnnotationScanner instance.
      Parameters:
      sc - the ServletContext for the application to be scanned
  • Method Details

    • getAnnotatedClasses

      public Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(Set<URI> uris)
      Specified by:
      getAnnotatedClasses in class com.sun.faces.spi.AnnotationProvider
      Returns:
      a Map of classes mapped to a specific annotation type. If no annotations are present, or the application is considered metadata-complete null will be returned.