1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 package org.apache.myfaces.spi;
20
21 import java.io.IOException;
22 import java.lang.annotation.Annotation;
23 import java.net.URL;
24 import java.util.Map;
25 import java.util.Set;
26
27 import javax.faces.FacesWrapper;
28 import javax.faces.context.ExternalContext;
29
30
31
32
33
34
35
36
37 public abstract class AnnotationProviderWrapper extends AnnotationProvider implements FacesWrapper<AnnotationProvider>
38 {
39 private AnnotationProvider delegate;
40
41 public AnnotationProviderWrapper()
42 {
43
44 }
45
46 public AnnotationProviderWrapper(AnnotationProvider delegate)
47 {
48 this.delegate = delegate;
49 }
50
51 public Map<Class<? extends Annotation>,Set<Class<?>>> getAnnotatedClasses(ExternalContext ctx)
52 {
53 return getWrapped().getAnnotatedClasses(ctx);
54 }
55
56 public Set<URL> getBaseUrls() throws IOException
57 {
58 return getWrapped().getBaseUrls();
59 }
60
61 public Set<URL> getBaseUrls(ExternalContext ctx) throws IOException
62 {
63 return getWrapped().getBaseUrls(ctx);
64 }
65
66 @Override
67 public AnnotationProvider getWrapped()
68 {
69 return this.delegate;
70 }
71
72 }