|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.spi.AnnotationProvider
public abstract class AnnotationProvider
This interface provide a way to override myfaces annotation scanning algorithm that needs to be found at startup:
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 Summary | |
---|---|
AnnotationProvider()
|
Method Summary | |
---|---|
abstract java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> |
getAnnotatedClasses(javax.faces.context.ExternalContext ctx)
Retrieve a map containing the classes that contains annotations used by jsf implementation at startup. |
abstract java.util.Set<java.net.URL> |
getBaseUrls()
The returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions ) |
AnnotationProvider |
getWrapped()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AnnotationProvider()
Method Detail |
---|
public abstract java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> getAnnotatedClasses(javax.faces.context.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
public abstract java.util.Set<java.net.URL> getBaseUrls() throws java.io.IOException
The returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions )
applicationConfigurationResources)
java.io.IOException
public AnnotationProvider getWrapped()
getWrapped
in interface javax.faces.FacesWrapper<AnnotationProvider>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |