Package com.sun.faces.config.manager.spi
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
-
-
Field Summary
-
Fields inherited from class com.sun.faces.spi.AnnotationProvider
servletContext, wrappedAnnotationProvider
-
-
Constructor Summary
Constructors Constructor Description FilterClassesFromFacesInitializerAnnotationProvider(jakarta.servlet.ServletContext servletContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<Class<? extends Annotation>,Set<Class<?>>>
getAnnotatedClasses(Set<URI> urls)
void
setAnnotationScanner(AnnotationScanner containerConnector, Set<String> jarNamesWithoutMetadataComplete)
-
-
-
Method Detail
-
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 classAnnotationProvider
- Parameters:
urls
- aSet
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 emptyMap
.
-
-