Annotation 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 ElementsModifier and TypeOptional ElementDescriptionThe 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 valueThe space name; empty means the binder's sole registered space (an error when several are registered).- Returns:
- the space name
- Default:
""
-
group
String groupThe 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 theAgentSpacesfacade'sbind(...)routes the bean to every group its annotations name.- Default:
""
-