Annotation Interface WeaveIgnore


@Retention(RUNTIME) @Target(FIELD) public @interface WeaveIgnore
Excludes a field, method, or record component from being rendered by JWeaver.

Use @WeaveIgnore to suppress properties that are not relevant for textual output or that would otherwise clutter the rendered representation. This annotation is evaluated by all Weaver implementations and takes precedence over other weave-related annotations.

Typical examples include internal caches, derived values, or references that would cause redundant output.

public class User {
    private String name;

    @WeaveIgnore
    private Session currentSession;
}
Since:
2.0