Interface AnnotationHelper


public interface AnnotationHelper
AnnotationHelper defines a interface to provide custom annotation processing for TypeFactory.
Author:
dyorgio
  • Method Details

    • isSupported

      boolean isSupported(Class<? extends Annotation> annotationClass)
      Verify if AnnotationHelper instance can handle the annotation.
      Parameters:
      annotationClass - Annotation class.
      Returns:
      true if this AnnotationHelper can handle the annotation.
    • getCustomKey

      Object getCustomKey(Annotation annotation)
      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

      TypeCategory getTypeByAnnotation(Class<?> cl, Annotation annotation)
      Get the TypeCategory according with object Class and Annotation.
      Parameters:
      cl - Class of type.
      annotation - Annotation found on element.
      Returns:
      Custom TypeCategory.