Annotation Interface ExampleApply


Dynamically applies an @Example annotation to specified classes, methods, or fields.

This annotation separates the targeting concern (on()/onClass()) from the content concern (value()), enabling @Example to be a pure data annotation without marshall-specific application machinery.

Example:

@ExampleApply(on="com.example.Foo.EXAMPLE", value=@Example) public class MyConfig {}

See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static @interface 
    A collection of @ExampleApply annotations.
  • Required Element Summary

    Required Elements
    Modifier and Type
    Required Element
    Description
    The @Example annotation to apply.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Dynamically apply this annotation to the specified classes/methods/fields.
    Class<?>[]
    Dynamically apply this annotation to the specified classes.
  • Element Details

    • on

      Dynamically apply this annotation to the specified classes/methods/fields.

      Identifies the targets this annotation applies to using fully-qualified names.

      See Also:
      Returns:
      The annotation value.
      Default:
      {}
    • onClass

      Dynamically apply this annotation to the specified classes.

      Identical to on() except allows you to specify class objects instead of strings.

      See Also:
      Returns:
      The annotation value.
      Default:
      {}