diff options
author | Jan Bartel | 2013-09-17 03:12:54 +0000 |
---|---|---|
committer | Jan Bartel | 2013-09-17 03:12:54 +0000 |
commit | f44787075ab32126aab00732f1e27a6d2cd512ca (patch) | |
tree | 71155999d03c34623e77ac7d3e698f34dbf9c031 /jetty-websocket | |
parent | 6594ee87fa7acef9a580a27ba6fc3532a28932ee (diff) | |
download | org.eclipse.jetty.project-f44787075ab32126aab00732f1e27a6d2cd512ca.tar.gz org.eclipse.jetty.project-f44787075ab32126aab00732f1e27a6d2cd512ca.tar.xz org.eclipse.jetty.project-f44787075ab32126aab00732f1e27a6d2cd512ca.zip |
417382 - Upgrade to asm 4.1 and refactor annotation parsing
Diffstat (limited to 'jetty-websocket')
-rw-r--r-- | jetty-websocket/javax-websocket-server-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/server/deploy/ServerEndpointAnnotationHandler.java | 28 |
1 files changed, 4 insertions, 24 deletions
diff --git a/jetty-websocket/javax-websocket-server-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/server/deploy/ServerEndpointAnnotationHandler.java b/jetty-websocket/javax-websocket-server-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/server/deploy/ServerEndpointAnnotationHandler.java index 7b97671e45..47d8086c51 100644 --- a/jetty-websocket/javax-websocket-server-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/server/deploy/ServerEndpointAnnotationHandler.java +++ b/jetty-websocket/javax-websocket-server-impl/src/main/java/org/eclipse/jetty/websocket/jsr356/server/deploy/ServerEndpointAnnotationHandler.java @@ -23,7 +23,7 @@ import java.util.List; import javax.websocket.server.ServerEndpoint; import org.eclipse.jetty.annotations.AbstractDiscoverableAnnotationHandler; -import org.eclipse.jetty.annotations.AnnotationParser.Value; +import org.eclipse.jetty.annotations.AnnotationParser.ClassInfo; import org.eclipse.jetty.util.log.Log; import org.eclipse.jetty.util.log.Logger; import org.eclipse.jetty.webapp.DiscoveredAnnotation; @@ -47,19 +47,13 @@ public class ServerEndpointAnnotationHandler extends AbstractDiscoverableAnnotat super(context,list); } - @Override - public String getAnnotationName() - { - return ANNOTATION_NAME; - } @Override - public void handleClass(String className, int version, int access, String signature, String superName, String[] interfaces, String annotationName, - List<Value> values) + public void handle(ClassInfo info, String annotationName) { if (LOG.isDebugEnabled()) { - LOG.debug("handleClass: {}, {}, {}",className,annotationName,values); + LOG.debug("handleClass: {}, {}, {}",info.getClassName(),annotationName); } if (!ANNOTATION_NAME.equals(annotationName)) @@ -68,21 +62,7 @@ public class ServerEndpointAnnotationHandler extends AbstractDiscoverableAnnotat return; } - ServerEndpointAnnotation annotation = new ServerEndpointAnnotation(_context,className,_resource); + ServerEndpointAnnotation annotation = new ServerEndpointAnnotation(_context,info.getClassName(),_resource); addAnnotation(annotation); } - - @Override - public void handleField(String className, String fieldName, int access, String fieldType, String signature, Object value, String annotation, - List<Value> values) - { - /* @ServerEndpoint annotation not supported for fields */ - } - - @Override - public void handleMethod(String className, String methodName, int access, String desc, String signature, String[] exceptions, String annotation, - List<Value> values) - { - /* @ServerEndpoint annotation not supported for methods */ - } } |