public abstract class AbstractMethodAnnotationScanner<T> extends Object
Constructor and Description |
---|
AbstractMethodAnnotationScanner() |
Modifier and Type | Method and Description |
---|---|
protected void |
assertIsPublicNonStatic(Method method) |
protected void |
assertIsReturn(Method method,
Class<?> type) |
protected void |
assertIsVoidReturn(Method method) |
protected void |
assertUnset(CallableMethod callable,
Class<? extends Annotation> annoClass,
Method method) |
protected void |
assertValidSignature(Method method,
Class<? extends Annotation> annoClass,
ParamList validParams) |
boolean |
isAnnotation(Annotation annotation,
Class<? extends Annotation> annotationClass) |
boolean |
isSameParameters(Class<?>[] actual,
Class<?>[] params) |
protected boolean |
isSignatureMatch(Method method,
ParamList validParams) |
protected boolean |
isTypeAnnotated(Class<?> pojo,
Class<? extends Annotation> expectedAnnotation) |
abstract void |
onMethodAnnotation(T metadata,
Class<?> pojo,
Method method,
Annotation annotation) |
void |
scanMethodAnnotations(T metadata,
Class<?> pojo) |
protected void assertIsPublicNonStatic(Method method)
protected void assertIsVoidReturn(Method method)
protected void assertUnset(CallableMethod callable, Class<? extends Annotation> annoClass, Method method)
protected void assertValidSignature(Method method, Class<? extends Annotation> annoClass, ParamList validParams)
public boolean isAnnotation(Annotation annotation, Class<? extends Annotation> annotationClass)
protected boolean isTypeAnnotated(Class<?> pojo, Class<? extends Annotation> expectedAnnotation)
public abstract void onMethodAnnotation(T metadata, Class<?> pojo, Method method, Annotation annotation)
Copyright © 1995-2015 Webtide. All Rights Reserved.