public abstract class AnnotationProvider extends Object implements FacesWrapper<AnnotationProvider>
ManagedBeanFacesComponentFacesBehaviorFacesConverterNamedEventFacesRendererFacesBehaviorRendererFacesValidatorThis is provided to allow application containers solve the following points
To override this class, create a file on a jar file with the following entry name: /META-INF/services/org.apache.myfaces.spi.AnnotationProvider and put the desired class name of the class that will override or extend the default AnnotationProvider.
To wrap the default AnnotationProvider, use a constructor like CustomAnnotationProvider(AnnotationProvider ap)
| Constructor and Description | 
|---|
| AnnotationProvider() | 
| Modifier and Type | Method and Description | 
|---|---|
| abstract Map<Class<? extends Annotation>,Set<Class<?>>> | getAnnotatedClasses(ExternalContext ctx)Retrieve a map containing the classes that contains annotations used by jsf implementation at
 startup. | 
| abstract Set<URL> | getBaseUrls()Deprecated.   | 
| Set<URL> | getBaseUrls(ExternalContext ctx)Same as getBaseUrls(), but with the ExternalContext reference. | 
| AnnotationProvider | getWrapped() | 
public abstract Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(ExternalContext ctx)
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 
ctx - The current ExternalContext@Deprecated public abstract Set<URL> getBaseUrls() throws IOException
The returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions )
applicationConfigurationResources)IOExceptionpublic Set<URL> getBaseUrls(ExternalContext ctx) throws IOException
ctx - IOExceptionpublic AnnotationProvider getWrapped()
getWrapped in interface FacesWrapper<AnnotationProvider>Copyright © 2016 The Apache Software Foundation. All Rights Reserved.