Annotation Type UseExtensionHandler


  • @Retention(RUNTIME)
    @Target(ANNOTATION_TYPE)
    @Alpha
    public @interface UseExtensionHandler
    Meta-Annotation used to map a method to an extension handler. Use this to annotate an annotation.
    Since:
    3.38.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      java.lang.String id
      An extension must declare an id and tag all annotations with it.
      java.lang.Class<? extends ExtensionHandler> value
      ExtensionHandler factory annotation that creates the extension handler for the decorated method.
    • Element Detail

      • value

        java.lang.Class<? extends ExtensionHandler> value
        ExtensionHandler factory annotation that creates the extension handler for the decorated method.
        The extension handler must have either a public no-arguments, a (Method method), or a (Class<?> extensionType, Method method) constructor. If the constructor takes one or more arguments, it will get the extension type and the invoked method passed in at construction time.
        Returns:
        the ExtensionHandler class
      • id

        java.lang.String id
        An extension must declare an id and tag all annotations with it. This allows the ExtensionFactory to decide whether it will process a class or not by looking at the annotations on the class and method and determine whether these have the right id for the extension.
        Returns:
        A string with the extension identifier