@Target(value={PARAMETER,FIELD}) @Retention(value=RUNTIME) public @interface DefaultSpace
This annotation has the contract to be associated to: i) a formal parameter or an object field
of type OpenEventspace
and to the @Inject
annotation, and ii) to be used only
inside a subtype of Space
.
When a formal parameter or a field is in a subtype of Space
and it is injectable and
marked with this annotation, the SARL run-time environment is supposed to inject the instance
of the default space of the context in which the injected space is located.
Copyright © 2021 the original authors or authors.