public abstract class AnnotationProviderWrapper extends AnnotationProvider implements FacesWrapper<AnnotationProvider>
Constructor and Description |
---|
AnnotationProviderWrapper() |
AnnotationProviderWrapper(AnnotationProvider delegate) |
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.
|
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 ctx)
Same as getBaseUrls(), but with the ExternalContext reference.
|
AnnotationProvider |
getWrapped() |
public AnnotationProviderWrapper()
public AnnotationProviderWrapper(AnnotationProvider delegate)
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() 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
public Set<URL> getBaseUrls(ExternalContext ctx) throws IOException
AnnotationProvider
getBaseUrls
in class AnnotationProvider
IOException
public AnnotationProvider getWrapped()
getWrapped
in interface FacesWrapper<AnnotationProvider>
getWrapped
in class AnnotationProvider
Copyright © 2021 The Apache Software Foundation. All rights reserved.