Annotation 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
-
Element Details
-
value
String[] valueVariable names to be exported from the scene returned by the method this annotation is attached to.- Returns:
- Exported variable names.
- Default:
{"page"}
-