Class FilterClassesFromFacesInitializerAnnotationProvider

java.lang.Object
com.sun.faces.spi.AnnotationProvider
com.sun.faces.config.manager.spi.FilterClassesFromFacesInitializerAnnotationProvider

public class FilterClassesFromFacesInitializerAnnotationProvider extends AnnotationProvider
This class is the default implementation of AnnotationProvider referenced by the AnnotationProviderFactory. Unless someone manually provides one via in META-INF/services, this is the one that will actually be instantiated and installed into Mojarra.

This class just further filters the classes that have already been obtained by the ServletContainerInitializer and stored in the ServletContext using the key RIConstants.ANNOTATED_CLASSES

  • Constructor Details

    • FilterClassesFromFacesInitializerAnnotationProvider

      public FilterClassesFromFacesInitializerAnnotationProvider(jakarta.servlet.ServletContext servletContext)
  • Method Details

    • setAnnotationScanner

      public void setAnnotationScanner(AnnotationScanner containerConnector, Set<String> jarNamesWithoutMetadataComplete)
    • getAnnotatedClasses

      public Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(Set<URI> urls)
      Specified by:
      getAnnotatedClasses in class AnnotationProvider
      Parameters:
      urls - a Set of URLs that refer to specific faces-config.xml documents on the classpath. The information returned by the map may return annotation information from sources outside of those defined by the urls.
      Returns:
      a Map of classes mapped to a specific annotation type. If no annotations are present, this method returns an empty Map.