Annotation Interface Export


@Retention(RUNTIME) public @interface Export

// @formatter:off An annotation to specify the fields that can be used by other scenes.

@Named
@Export
public Scene aMethod() {
  return Scene.perform()
              .acts()
              .object();
}

@Named
@DependsOn("aMethod")
public Scene bMethod() {
  return ...;
}

The method with this annotation can be referenced by other method (bMethod) using @DependsOn annotation. The scene in the referencing method can access fields written by a scene in referenced method (aMethod). // @formatter:on

  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Variable names to be exported from the scene returned by the method this annotation is attached to.
  • Element Details

    • value

      String[] value
      Variable names to be exported from the scene returned by the method this annotation is attached to.
      Returns:
      Exported variable names.
      Default:
      {"page"}