Annotation Interface GraphProperty


@Documented @Target(METHOD) @Retention(RUNTIME) public @interface GraphProperty
Adds a property derived from relationship context when a Graph is serialized.

The annotated instance method must return a value and accept one or more Graph<T> parameters. A parameter may select the current model graph or one of its typed ancestors. The method is not invoked when the model value is serialized by itself, and resolving its parameters reuses the graph that is already being serialized.

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Property name.
  • Element Details

    • value

      String value
      Property name. By default the annotated method's bean property name is used.
      Default:
      ""