public class DelegatingAnnotationProvider extends AnnotationProvider
Modifier and Type | Field and Description |
---|---|
private AnnotationScanner |
scanner |
sc
Constructor and Description |
---|
DelegatingAnnotationProvider(javax.servlet.ServletContext sc) |
Modifier and Type | Method and Description |
---|---|
private void |
createAnnotatedMap(java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> annotatedMap,
java.util.Set<java.lang.Class<?>> annotatedSet)
Go over the annotated set and converter it to a hash map.
|
java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> |
getAnnotatedClasses(java.util.Set<java.net.URI> urls) |
private boolean |
matchesAnnotationScanPackages(java.lang.Class clazz,
java.lang.String[] annotationScanPackages) |
void |
setAnnotationScanner(AnnotationScanner containerConnector,
java.util.Set<java.lang.String> jarNamesWithoutMetadataComplete) |
private AnnotationScanner scanner
public DelegatingAnnotationProvider(javax.servlet.ServletContext sc)
public java.util.Map<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> getAnnotatedClasses(java.util.Set<java.net.URI> urls)
getAnnotatedClasses
in class AnnotationProvider
urls
- a Set
of URLs that refer to specific faces-config.xml
documents on the classpath. The information returned by the map may
return annotation information from sources outside of those defined by the
urls.Map
of classes mapped to a specific annotation type.
If no annotations are present, this method returns an empty Map
.public void setAnnotationScanner(AnnotationScanner containerConnector, java.util.Set<java.lang.String> jarNamesWithoutMetadataComplete)
private void createAnnotatedMap(java.util.HashMap<java.lang.Class<? extends java.lang.annotation.Annotation>,java.util.Set<java.lang.Class<?>>> annotatedMap, java.util.Set<java.lang.Class<?>> annotatedSet)
annotatedMap
- annotatedSet
- private boolean matchesAnnotationScanPackages(java.lang.Class clazz, java.lang.String[] annotationScanPackages)
Copyright © 2002-2013 Oracle America, Inc. All Rights Reserved.