Package org.apache.juneau.marshall
Annotation Interface NamePropertyApply
@Documented
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Repeatable(Array.class)
@ContextApply(Applier.class)
public @interface NamePropertyApply
Dynamically applies a
@NameProperty annotation to specified methods or fields.
This annotation separates the targeting concern (on()) from the
content concern (value()), enabling @NameProperty to be a pure data annotation
without marshall-specific application machinery.
Example:
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic @interfaceA collection of@NamePropertyApply annotations. -
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
value
The@NamePropertyannotation to apply.- Returns:
- The annotation value.
-
-
-
on
Dynamically apply this annotation to the specified methods/fields.Identifies the targets this annotation applies to using fully-qualified names.
See Also:
- Returns:
- The annotation value.
- Default:
- {}
-