Class AbstractMethodAnnotationScanner<T>
- java.lang.Object
-
- org.eclipse.jetty.websocket.common.events.annotated.AbstractMethodAnnotationScanner<T>
-
- Type Parameters:
T
- The type of metadata
- Direct Known Subclasses:
AnnotatedEndpointScanner
,JettyAnnotatedScanner
public abstract class AbstractMethodAnnotationScanner<T> extends java.lang.Object
Basic scanner for Annotated Methods
-
-
Constructor Summary
Constructors Constructor Description AbstractMethodAnnotationScanner()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected void
assertIsPublicNonStatic(java.lang.reflect.Method method)
protected void
assertIsReturn(java.lang.reflect.Method method, java.lang.Class<?> type)
protected void
assertIsVoidReturn(java.lang.reflect.Method method)
protected void
assertUnset(CallableMethod callable, java.lang.Class<? extends java.lang.annotation.Annotation> annoClass, java.lang.reflect.Method method)
protected void
assertValidSignature(java.lang.reflect.Method method, java.lang.Class<? extends java.lang.annotation.Annotation> annoClass, ParamList validParams)
boolean
isAnnotation(java.lang.annotation.Annotation annotation, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
boolean
isSameParameters(java.lang.Class<?>[] actual, java.lang.Class<?>[] params)
protected boolean
isSignatureMatch(java.lang.reflect.Method method, ParamList validParams)
protected boolean
isTypeAnnotated(java.lang.Class<?> pojo, java.lang.Class<? extends java.lang.annotation.Annotation> expectedAnnotation)
abstract void
onMethodAnnotation(T metadata, java.lang.Class<?> pojo, java.lang.reflect.Method method, java.lang.annotation.Annotation annotation)
void
scanMethodAnnotations(T metadata, java.lang.Class<?> pojo)
-
-
-
Method Detail
-
assertIsPublicNonStatic
protected void assertIsPublicNonStatic(java.lang.reflect.Method method)
-
assertIsReturn
protected void assertIsReturn(java.lang.reflect.Method method, java.lang.Class<?> type)
-
assertIsVoidReturn
protected void assertIsVoidReturn(java.lang.reflect.Method method)
-
assertUnset
protected void assertUnset(CallableMethod callable, java.lang.Class<? extends java.lang.annotation.Annotation> annoClass, java.lang.reflect.Method method)
-
assertValidSignature
protected void assertValidSignature(java.lang.reflect.Method method, java.lang.Class<? extends java.lang.annotation.Annotation> annoClass, ParamList validParams)
-
isAnnotation
public boolean isAnnotation(java.lang.annotation.Annotation annotation, java.lang.Class<? extends java.lang.annotation.Annotation> annotationClass)
-
isSameParameters
public boolean isSameParameters(java.lang.Class<?>[] actual, java.lang.Class<?>[] params)
-
isSignatureMatch
protected boolean isSignatureMatch(java.lang.reflect.Method method, ParamList validParams)
-
isTypeAnnotated
protected boolean isTypeAnnotated(java.lang.Class<?> pojo, java.lang.Class<? extends java.lang.annotation.Annotation> expectedAnnotation)
-
onMethodAnnotation
public abstract void onMethodAnnotation(T metadata, java.lang.Class<?> pojo, java.lang.reflect.Method method, java.lang.annotation.Annotation annotation)
-
scanMethodAnnotations
public void scanMethodAnnotations(T metadata, java.lang.Class<?> pojo)
-
-