Annotation Interface HtmlApply


Dynamically applies a @Html annotation to specified classes, methods, or fields.

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

Example:

@HtmlApply(on="com.example.Foo", value=@Html(format=HtmlFormat.XML)) public class MyConfig {}

See Also:
  • Nested Class Summary

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

    Required Elements
    Modifier and Type
    Required Element
    Description
    The @Html 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

    • value

      The @Html annotation to apply.
      Returns:
      The annotation value.
    • 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:
      {}