public abstract class AbstractDataBuilder extends Object
Constructor and Description |
---|
AbstractDataBuilder() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
build(AnnotationData data,
Annotation annotation,
Class<? extends Annotation> expectedAnnotationClass,
Method targetMethod) |
protected <T extends Annotation> |
getAnnotation(Class<T> annotationClass,
Annotation[] annotations) |
protected <T> T |
invokeMethod(Annotation annotation,
Class<? extends Annotation> annotationClass,
String methodName) |
protected boolean |
isType(Class<?> clazz,
CacheOperation.Type type) |
void |
populate(AnnotationData data,
Annotation annotation,
Class<? extends Annotation> expectedAnnotationClass,
Method targetMethod)
Populates additional data into annotation data.
|
protected boolean |
support(Class<? extends Annotation> expectedAnnotationClass) |
protected void |
throwException(String msg,
Class<? extends Annotation> clazz,
Method method) |
public void populate(AnnotationData data, Annotation annotation, Class<? extends Annotation> expectedAnnotationClass, Method targetMethod) throws Exception
data
- the annotation data to fill inannotation
- the cache annotationexpectedAnnotationClass
- the expected class of cache annotationtargetMethod
- the intercepted (cached) methodException
protected abstract void build(AnnotationData data, Annotation annotation, Class<? extends Annotation> expectedAnnotationClass, Method targetMethod) throws Exception
Exception
protected boolean support(Class<? extends Annotation> expectedAnnotationClass)
protected boolean isType(Class<?> clazz, CacheOperation.Type type)
protected <T extends Annotation> T getAnnotation(Class<T> annotationClass, Annotation[] annotations)
protected void throwException(String msg, Class<? extends Annotation> clazz, Method method)
protected <T> T invokeMethod(Annotation annotation, Class<? extends Annotation> annotationClass, String methodName) throws Exception
Exception
Copyright © 2019. All rights reserved.