|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 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()
|
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 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>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |