io.sarl.api.util
Annotation DefaultSpace
All Superinterfaces:
java.lang.annotation.Annotation
@java.lang.annotation.Target({PARAMETER,FIELD})
@java.lang.annotation.Retention(RUNTIME)
@javax.inject.Qualifier
abstract annotation DefaultSpace
implements java.lang.annotation.Annotation
Annotation that is used for marking formal parameters and object fields in order to received the default space instance of a SARL context.

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.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.util
Since:
0.10