|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.spi.AnnotationProvider
org.apache.myfaces.config.annotation.DefaultAnnotationProvider
public class DefaultAnnotationProvider
Field Summary | |
---|---|
static java.lang.String |
SCAN_PACKAGES
Servlet context init parameter which defines which packages to scan for beans, separated by commas. |
Constructor Summary | |
---|---|
DefaultAnnotationProvider()
|
Method Summary | |
---|---|
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. |
protected java.util.Collection<java.lang.Class<?>> |
getAnnotatedMetaInfClasses(javax.faces.context.ExternalContext ctx,
java.util.Set<java.net.URL> urls)
|
protected java.util.Collection<java.lang.Class<?>> |
getAnnotatedMyfacesImplClasses(javax.faces.context.ExternalContext ctx,
java.net.URL url)
|
protected java.util.Collection<java.lang.Class<?>> |
getAnnotatedWebInfClasses(javax.faces.context.ExternalContext ctx)
|
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 ) |
Methods inherited from class org.apache.myfaces.spi.AnnotationProvider |
---|
getWrapped |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
@JSFWebConfigParam(since="2.0") public static final java.lang.String SCAN_PACKAGES
Servlet context init parameter which defines which packages to scan for beans, separated by commas.
Constructor Detail |
---|
public DefaultAnnotationProvider()
Method Detail |
---|
public java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> getAnnotatedClasses(javax.faces.context.ExternalContext ctx)
AnnotationProvider
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
getAnnotatedClasses
in class AnnotationProvider
ctx
- The current ExternalContext
public java.util.Set<java.net.URL> getBaseUrls() throws java.io.IOException
AnnotationProvider
The returned Set<URL> urls are calculated in this way ( see JSF 2.0 spec section 11.4.2 for definitions )
applicationConfigurationResources)
getBaseUrls
in class AnnotationProvider
java.io.IOException
protected java.util.Collection<java.lang.Class<?>> getAnnotatedMetaInfClasses(javax.faces.context.ExternalContext ctx, java.util.Set<java.net.URL> urls)
protected java.util.Collection<java.lang.Class<?>> getAnnotatedMyfacesImplClasses(javax.faces.context.ExternalContext ctx, java.net.URL url)
protected java.util.Collection<java.lang.Class<?>> getAnnotatedWebInfClasses(javax.faces.context.ExternalContext ctx) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |