public abstract class AnnotationProvider extends Object implements FacesWrapper<AnnotationProvider>
ManagedBean
FacesComponent
FacesBehavior
FacesConverter
NamedEvent
FacesRenderer
FacesBehaviorRenderer
FacesValidator
This 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)
IOException
public Set<URL> getBaseUrls(ExternalContext ctx) throws IOException
ctx
- IOException
public AnnotationProvider getWrapped()
getWrapped
in interface FacesWrapper<AnnotationProvider>
Copyright © 2020 The Apache Software Foundation. All rights reserved.