Modifier and type | Property and description |
---|---|
EventSpace | defaultSpace Replies the default space of the context. |
java.util.UUID | iD Replies the identifier of the context. |
ConcurrentCollection<T> | spaces Replies all the spaces defined in this context. |
Modifier and type | Action and description |
---|---|
abstract S | createSpace(Class<T>,UUID,Object*) Create an instance of space following the given specification. |
abstract EventSpace | getDefaultSpace Replies the default space of the context. |
abstract java.util.UUID | getID Replies the identifier of the context. |
default S | getOrCreateSpace(Class<T>,UUID,Object*) Retreive or create an instance of space which was created with the given specification.
Deprecated for removal since 0.10: see getOrCreateSpaceWithSpec(Class, UUID, Object...)
|
abstract S | getOrCreateSpaceWithID(Class<T>,UUID,Object*) Retrieve or create an instance of space with the given identifier. |
default S | getOrCreateSpaceWithID(UUID,Class<T>,Object*) Retrieve or create an instance of space with the given identifier.
Deprecated for removal since 0.10: see getOrCreateSpaceWithID(Class, UUID, Object...)
|
abstract S | getOrCreateSpaceWithSpec(Class<T>,UUID,Object*) Retrieve or create an instance of space which was created with the given specification. |
abstract S | getSpace(UUID) Retrieve, but do not create, an instance of space following the given ID. |
abstract ConcurrentCollection<T> | getSpaces Replies all the spaces defined in this context. |
abstract ConcurrentCollection<T> | getSpaces(Class<T>) Replies all the spaces that are implementing the given specification. |
abstract boolean | isRootContext Replies if the context is a root context. |
val defaultSpace : EventSpace
This property is an alias for the action: getDefaultSpace
val iD : java.util.UUID
This property is an alias for the action: getID
val spaces : ConcurrentCollection<T>
This property is an alias for the action: getSpaces
def createSpace(Class<T>,UUID,Object*) : Swith S extends Space
null
. If you want to find an existing space prior to the creation of a new one, you should use getOrCreateSpace(Class, UUID, Object...).
def getDefaultSpace : EventSpace
def getID : java.util.UUID
def getOrCreateSpace(Class<T>,UUID,Object*) : Swith S extends Space
EventSpaceSpecification
or OpenEventSpaceSpecification
. Consequently, in the case of the spec
argument is one of the previous types, and there is no other space in the context that was created with this specification, then the function creates a totally new space.
Caution #2: The spaceUUID
parameter is used only if no existing space created with the given specification was found.
def getOrCreateSpaceWithID(Class<T>,UUID,Object*) : Swith S extends Space
spaceUUID
parameter is given to the specification when creating the space.
Caution #2: The spaceUUID
parameter is equal to the identifier of the default space in this context, then the default space is returned by this function.
def getOrCreateSpaceWithID(UUID,Class<T>,Object*) : Swith S extends Space
spaceUUID
parameter is given to the specification when creating the space.
Caution #2: The spaceUUID
parameter is equal to the identifier of the default space in this context, then the default space is returned by this function.
def getOrCreateSpaceWithSpec(Class<T>,UUID,Object*) : Swith S extends Space
EventSpaceSpecification
or OpenEventSpaceSpecification
. Consequently, in the case of the spec
argument is one of the previous types, and there is no other space in the context that was created with this specification, then the function creates a totally new space.
Caution: The spaceUUID
parameter is used only if no existing space created with the given specification was found.
def getSpace(UUID) : Swith S extends Space
null
.
def getSpaces : ConcurrentCollection<T>
def getSpaces(Class<T>) : ConcurrentCollection<T>with S extends Space
def isRootContext : boolean