Annotation Type 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
Modifier and TypeRequired ElementDescriptionAn extension must declare an id and tag all annotations with it.Class
<? extends ExtensionHandler> ExtensionHandler
factory annotation that creates the extension handler for the decorated method.
-
Element Details
-
value
Class<? extends ExtensionHandler> valueExtensionHandler
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
String idAn extension must declare an id and tag all annotations with it. This allows theExtensionFactory
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
-