Class AnnotatedEndpointScanner<T extends Annotation,C extends javax.websocket.EndpointConfig>
java.lang.Object
org.eclipse.jetty.websocket.common.events.annotated.AbstractMethodAnnotationScanner<AnnotatedEndpointMetadata<T,C>>
org.eclipse.jetty.websocket.jsr356.annotations.AnnotatedEndpointScanner<T,C>
public class AnnotatedEndpointScanner<T extends Annotation,C extends javax.websocket.EndpointConfig>
extends AbstractMethodAnnotationScanner<AnnotatedEndpointMetadata<T,C>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final org.eclipse.jetty.util.log.Logger
private final AnnotatedEndpointMetadata
<T, C> private final LinkedList
<IJsrParamId> private final LinkedList
<IJsrParamId> private final LinkedList
<IJsrParamId> private final LinkedList
<IJsrParamId> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate void
assertNotDuplicate
(JsrCallable callable, Class<? extends Annotation> methodAnnotationClass, Class<?> pojo, Method method) void
onMethodAnnotation
(AnnotatedEndpointMetadata<T, C> metadata, Class<?> pojo, Method method, Annotation annotation) scan()
private void
visitMethod
(JsrCallable callable, Class<?> pojo, Method method, LinkedList<IJsrParamId> paramIds, Class<? extends Annotation> methodAnnotationClass) private boolean
visitParam
(JsrCallable callable, Param param, List<IJsrParamId> paramIds) Methods inherited from class org.eclipse.jetty.websocket.common.events.annotated.AbstractMethodAnnotationScanner
assertIsPublicNonStatic, assertIsReturn, assertIsVoidReturn, assertUnset, assertValidSignature, isAnnotation, isSameParameters, isSignatureMatch, isTypeAnnotated, scanMethodAnnotations
-
Field Details
-
LOG
private static final org.eclipse.jetty.util.log.Logger LOG -
paramsOnOpen
-
paramsOnClose
-
paramsOnError
-
paramsOnMessage
-
metadata
private final AnnotatedEndpointMetadata<T extends Annotation,C extends javax.websocket.EndpointConfig> metadata
-
-
Constructor Details
-
AnnotatedEndpointScanner
-
-
Method Details
-
assertNotDuplicate
private void assertNotDuplicate(JsrCallable callable, Class<? extends Annotation> methodAnnotationClass, Class<?> pojo, Method method) -
onMethodAnnotation
public void onMethodAnnotation(AnnotatedEndpointMetadata<T, C> metadata, Class<?> pojo, Method method, Annotation annotation) - Specified by:
onMethodAnnotation
in classAbstractMethodAnnotationScanner<AnnotatedEndpointMetadata<T extends Annotation,
C extends javax.websocket.EndpointConfig>>
-
scan
-
visitMethod
private void visitMethod(JsrCallable callable, Class<?> pojo, Method method, LinkedList<IJsrParamId> paramIds, Class<? extends Annotation> methodAnnotationClass) -
visitParam
-