1
2
3
4
5
6
7
8
9
10
11
12
13 package org.eclipse.jetty.annotations;
14
15 import java.util.List;
16
17 import org.eclipse.jetty.annotations.AnnotationParser.Value;
18 import org.eclipse.jetty.util.log.Log;
19 import org.eclipse.jetty.webapp.WebAppContext;
20
21 public class WebListenerAnnotationHandler extends AbstractDiscoverableAnnotationHandler
22 {
23 public WebListenerAnnotationHandler (WebAppContext context)
24 {
25 super(context);
26 }
27
28
29
30
31 public void handleClass(String className, int version, int access, String signature, String superName, String[] interfaces, String annotation,
32 List<Value> values)
33 {
34 WebListenerAnnotation wlAnnotation = new WebListenerAnnotation(_context, className);
35 addAnnotation(wlAnnotation);
36 }
37
38 public void handleField(String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation,
39 List<Value> values)
40 {
41 Log.warn ("@WebListener is not applicable to fields: "+className+"."+fieldName);
42 }
43
44 public void handleMethod(String className, String methodName, int access, String params, String signature, String[] exceptions, String annotation,
45 List<Value> values)
46 {
47 Log.warn ("@WebListener is not applicable to methods: "+className+"."+methodName+" "+signature);
48 }
49
50 }