Top Description Fields Constructors Methods
com.sun.faces.config.manager.spi

public Class FilterClassesFromFacesInitializerAnnotationProvider

extends AnnotationProvider
Class Inheritance
Static Imports
com.sun.faces.RIConstants.ANNOTATED_CLASSES, com.sun.faces.config.WebConfiguration.WebContextInitParameter.AnnotationScanPackages, com.sun.faces.config.manager.spi.AnnotationScanner.FACES_ANNOTATION_TYPE, com.sun.faces.util.Util.isEmpty, java.util.Arrays.stream

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

Inherited from com.sun.faces.spi.AnnotationProvider:
servletContextwrappedAnnotationProvider

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private Map<Class<? extends Annotation>, Set<Class<?>>>
createAnnotatedMap(Set<Class<?>> annotatedSet)

Go over the annotated set and converter it to a hash map.

public Map<Class<? extends Annotation>, Set<Class<?>>>
getAnnotatedClasses(Set<URI>
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.
urls
)

Implements abstract com.sun.faces.spi.AnnotationProvider.getAnnotatedClasses.

private boolean
matchesAnnotationScanPackages(Class<?> clazz, String[] annotationScanPackages)

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

Constructor Detail

FilterClassesFromFacesInitializerAnnotationProviderback to summary
public FilterClassesFromFacesInitializerAnnotationProvider(ServletContext servletContext)

Method Detail

createAnnotatedMapback to summary
private Map<Class<? extends Annotation>, Set<Class<?>>> createAnnotatedMap(Set<Class<?>> annotatedSet)

Go over the annotated set and converter it to a hash map.

getAnnotatedClassesback to summary
public Map<Class<? extends Annotation>, Set<Class<?>>> getAnnotatedClasses(Set<URI> urls)

Implements abstract com.sun.faces.spi.AnnotationProvider.getAnnotatedClasses.

Parameters
urls:Set<URI>

Doc from com.sun.faces.spi.AnnotationProvider.getAnnotatedClasses.

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:Map<Class<? extends Annotation>, Set<Class<?>>>

Doc from com.sun.faces.spi.AnnotationProvider.getAnnotatedClasses.

a Map of classes mapped to a specific annotation type. If no annotations are present, this method returns an empty Map.

Annotations
@SuppressWarnings:unchecked
@Override
matchesAnnotationScanPackagesback to summary
private boolean matchesAnnotationScanPackages(Class<?> clazz, String[] annotationScanPackages)
setAnnotationScannerback to summary
public void setAnnotationScanner(AnnotationScanner containerConnector, Set<String> jarNamesWithoutMetadataComplete)