Package org.apache.juneau.marshall.yaml
Annotation Interface YamlApply
@Documented
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Repeatable(Array.class)
@ContextApply(Applier.class)
public @interface YamlApply
Dynamically applies a
@Yaml annotation to specified classes, methods, or fields.
This annotation separates the targeting concern (on()/onClass()) from the
content concern (value()), enabling @Yaml to be a pure data annotation
without marshall-specific application machinery.
Example:
See Also:
-
Nested Class Summary
Nested Classes -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
The@Yamlannotation to apply.- Returns:
- The annotation value.
-
-
-
on
Dynamically apply this annotation to the specified classes/methods/fields.See Also:
- Returns:
- The annotation value.
- Default:
- {}
-
onClass
Dynamically apply this annotation to the specified classes.See Also:
- Returns:
- The annotation value.
- Default:
- {}
-