public class DefaultAnnotationProvider extends AnnotationProvider
| Modifier and Type | Field and Description |
|---|---|
static String |
SCAN_PACKAGES
Servlet context init parameter which defines which packages to scan
for beans, separated by commas.
|
| 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<?>> |
getAnnotatedMyfacesImplClasses(ExternalContext ctx,
URL url) |
protected Collection<Class<?>> |
getAnnotatedWebInfClasses(ExternalContext ctx) |
Set<URL> |
getBaseUrls()
The returned Set<URL> urls are calculated in this way
( see JSF 2.0 spec section 11.4.2 for definitions )
|
Set<URL> |
getBaseUrls(ExternalContext context)
Same as getBaseUrls(), but with the ExternalContext reference.
|
protected Collection<Class<?>> |
getGAEAnnotatedMetaInfClasses(ExternalContext context,
String filter) |
getWrapped@JSFWebConfigParam(since="2.0") public static final String SCAN_PACKAGES
public Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(ExternalContext ctx)
AnnotationProviderThe 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 AnnotationProviderctx - The current ExternalContextpublic Set<URL> getBaseUrls() throws IOException
AnnotationProviderThe returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions )
applicationConfigurationResources)getBaseUrls in class AnnotationProviderIOExceptionpublic Set<URL> getBaseUrls(ExternalContext context) throws IOException
AnnotationProvidergetBaseUrls in class AnnotationProviderIOExceptionprotected Collection<Class<?>> getAnnotatedMetaInfClasses(ExternalContext ctx, Set<URL> urls)
protected Collection<Class<?>> getGAEAnnotatedMetaInfClasses(ExternalContext context, String filter)
protected Collection<Class<?>> getAnnotatedMyfacesImplClasses(ExternalContext ctx, URL url)
protected Collection<Class<?>> getAnnotatedWebInfClasses(ExternalContext ctx) throws IOException
IOExceptionCopyright © 2025 The Apache Software Foundation. All rights reserved.