Class DefaultAnnotationProvider
- java.lang.Object
- 
- org.apache.myfaces.spi.AnnotationProvider
- 
- org.apache.myfaces.config.annotation.DefaultAnnotationProvider
 
 
- 
- All Implemented Interfaces:
- FacesWrapper<AnnotationProvider>
 
 public class DefaultAnnotationProvider extends AnnotationProvider - Since:
- 2.0.2
- Author:
- Leonardo Uribe
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultAnnotationProvider()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method 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 )- 
Methods inherited from class org.apache.myfaces.spi.AnnotationProvidergetWrapped
 
- 
 
- 
- 
- 
Method Detail- 
getAnnotatedClassespublic Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(ExternalContext ctx) Description copied from class:AnnotationProviderRetrieve a map containing the classes that contains annotations used by jsf implementation at startup.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. - Specified by:
- getAnnotatedClassesin class- AnnotationProvider
- Parameters:
- ctx- The current ExternalContext
- Returns:
- A map with all classes that could contain annotations.
 
 - 
getBaseUrlspublic Set<URL> getBaseUrls(ExternalContext context) throws IOException Description copied from class:AnnotationProviderThe returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions ) - All resources that match either "META-INF/faces-config.xml" or end with ".facesconfig.xml" directly in
 the "META-INF" directory (considered applicationConfigurationResources)
 - Specified by:
- getBaseUrlsin class- AnnotationProvider
- Returns:
- Throws:
- IOException
 
- All resources that match either "META-INF/faces-config.xml" or end with ".facesconfig.xml" directly in
 the "META-INF" directory (considered 
 - 
getAnnotatedMetaInfClassesprotected Collection<Class<?>> getAnnotatedMetaInfClasses(ExternalContext ctx, Set<URL> urls) 
 - 
getAnnotatedWebInfClassesprotected Collection<Class<?>> getAnnotatedWebInfClasses(ExternalContext ctx) throws IOException - Throws:
- IOException
 
 
- 
 
-