Annotation Interface SpaceRef


@Retention(RUNTIME) @Target(FIELD) public @interface SpaceRef
Injects a space handle into an agent field at bind time, so a method body can write entries mid-flight (progress markers, side outputs, scheduled writes) without carrying the facade in. The field's type must be Space. Under Spring, @Scheduled plus a @SpaceRef field is the idiomatic periodic agent — no scheduling machinery of our own.
@SpaceRef("findings")
private Space findings;
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    The group this binding belongs to, by the application-facing group name or the GroupId value; empty means "any group whose spaces satisfy it".
    The space name; empty means the binder's sole registered space (an error when several are registered).
  • Element Details

    • value

      String value
      The space name; empty means the binder's sole registered space (an error when several are registered).
      Returns:
      the space name
      Default:
      ""
    • group

      String group
      The group this binding belongs to, by the application-facing group name or the GroupId value; empty means "any group whose spaces satisfy it". A binder for a different group treats the field as not its own and skips it, so one bean can bind methods into several groups by name (spec §10.3), and the AgentSpaces facade's bind(...) routes the bean to every group its annotations name.
      Default:
      ""