io.sarl.sre.janus.spaces
Class SreSpaceSpecificationFactory
@javax.inject.Singleton
class SreSpaceSpecificationFactory
extends java.lang.Object
Factory of space specification for SRE.
Maven Group Identifier:
io.sarl.sre.janus
Maven Artifact Identifier:
janus.kernel
Constructor Summary
Constructor and description
new(Injector,Provider<T>,Provider<T>)
Action Summary
Modifier and type Action and description
S createOpenEventSpaceSpecificationForDefaultSpace(Class<T>)
Create the space specification for an event space that is supposed to be the default space.
S createOpenEventSpaceSpecificationInInnerContext(Class<T>,OpenEventSpace)
Create the space specification for an event space that is supposed to be not the default space.
protected SpaceSpecification<S> newSpaceSpecification(Class<T>,OpenEventSpace)
Create the space specification for an event space that is supposed to be the default space.
Constructor Details
new(Injector,Provider<T>,Provider<T>)
new(Injector,Provider<T>,Provider<T>)
Action Details
createOpenEventSpaceSpecificationForDefaultSpace(Class<T>)
def createOpenEventSpaceSpecificationForDefaultSpace(Class<T>) : S

with S extends SpaceSpecification<S>

Create the space specification for an event space that is supposed to be the default space.
Parameters:
<S> - the type of the space specification.
type - the type of the space specification.
Returns:
the specification.
createOpenEventSpaceSpecificationInInnerContext(Class<T>,OpenEventSpace)
def createOpenEventSpaceSpecificationInInnerContext(Class<T>,OpenEventSpace) : S

with S extends SpaceSpecification<S>

Create the space specification for an event space that is supposed to be not the default space.
Parameters:
<S> - the type of the space specification.
type - the type of the space specification.
defaultSpace - the default space of the context.
Returns:
the specification.
newSpaceSpecification(Class<T>,OpenEventSpace)
protected def newSpaceSpecification(Class<T>,OpenEventSpace) : SpaceSpecification<S>
Create the space specification for an event space that is supposed to be the default space.
Parameters:
type - the type of the space specification.
defaultSpace - the instance of the default space.
Returns:
the specification.