public class DefaultAnnotationProvider extends AnnotationProvider
Constructor and Description |
---|
DefaultAnnotationProvider() |
Modifier and Type | Method and Description |
---|---|
Map<Class<? extends Annotation>,Set<Class<?>>> |
getAnnotatedClasses(ExternalContext ctx)
Retrieve a map containing the classes that contains annotations used by jsf implementation at
startup.
|
protected Collection<Class<?>> |
getAnnotatedMetaInfClasses(ExternalContext ctx,
Set<URL> urls) |
protected Collection<Class<?>> |
getAnnotatedWebInfClasses(ExternalContext ctx) |
Set<URL> |
getBaseUrls(ExternalContext context)
The returned Set<URL> urls are calculated in this way
( see JSF 2.0 spec section 11.4.2 for definitions )
|
getWrapped
public Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(ExternalContext ctx)
AnnotationProvider
The default implementation must comply with JSF 2.0 spec section 11.5.1 Requirements for scanning of classes for annotations.
This method could call getBaseUrls() to obtain a list of URL that could be used to indicate jar files of annotations in the classpath.
If the <faces-config> element in the WEB-INF/faces-config.xml file contains metadata-complete attribute whose value is "true", this method should not be called.
getAnnotatedClasses
in class AnnotationProvider
ctx
- The current ExternalContextpublic Set<URL> getBaseUrls(ExternalContext context) throws IOException
AnnotationProvider
The returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions )
applicationConfigurationResources)
getBaseUrls
in class AnnotationProvider
IOException
protected Collection<Class<?>> getAnnotatedMetaInfClasses(ExternalContext ctx, Set<URL> urls)
protected Collection<Class<?>> getAnnotatedWebInfClasses(ExternalContext ctx) throws IOException
IOException
Copyright © 2021 The Apache Software Foundation. All rights reserved.