Package com.querydsl.codegen
Interface AnnotationHelper
public interface AnnotationHelper
AnnotationHelper defines a interface to provide custom annotation processing
for TypeFactory.- Author:
- dyorgio
-
Method Summary
Modifier and TypeMethodDescriptiongetCustomKey(Annotation annotation) Get specific object that will be used as part of type cache key.getTypeByAnnotation(Class<?> cl, Annotation annotation) Get theTypeCategoryaccording with object Class and Annotation.booleanisSupported(Class<? extends Annotation> annotationClass) Verify if AnnotationHelper instance can handle the annotation.
-
Method Details
-
isSupported
Verify if AnnotationHelper instance can handle the annotation.- Parameters:
annotationClass- Annotation class.- Returns:
trueif this AnnotationHelper can handle the annotation.
-
getCustomKey
Get specific object that will be used as part of type cache key.- Parameters:
annotation- Annotation instance.- Returns:
- Any object, normally a annotation param. Can be
null.
-
getTypeByAnnotation
Get theTypeCategoryaccording with object Class and Annotation.- Parameters:
cl- Class of type.annotation- Annotation found on element.- Returns:
- Custom
TypeCategory.
-