public class DefaultContextFactory extends Object implements ContextFactory
Constructor and Description |
---|
DefaultContextFactory(spaceRepositoryProvider : javax.inject.Provider<SpaceRepository>,
logger : LoggingService,
listenerFactory : javax.inject.Provider<SpaceRepositoryListenerFactory>)
Constructor with injected parameters.
|
Modifier and Type | Method and Description |
---|---|
Context |
newInstance(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent)
Create an instance of SRE context.
|
@Inject
public new
(spaceRepositoryProvider : javax.inject.Provider<SpaceRepository>,
logger : LoggingService,
listenerFactory : javax.inject.Provider<SpaceRepositoryListenerFactory>)
id
- identifier of the context.defaultSpaceID
- identifier of the default space in the context.lock
- the synchronization lock to use.spaceRepositoryProvider
- the provider of space repositorylogger
- the logging service.listenerFactory
- the factory of space listeners.public def
newInstance(contextID : UUID,
defaultSpaceID : UUID,
owner : Agent) : Context
ContextFactory
newInstance
in interface ContextFactory
contextID
- the identifier of the context.defaultSpaceID
- the identifier of the defualt space into the context.owner
- is the owner of the context. If null
, the context is the root context.Copyright © 2020 the original authors or authors.