public class KernelModule
extends com.google.inject.AbstractModule
Modifier and Type | Method and Description |
---|---|
protected void |
configure() |
Context |
provideKernelContext(injector : com.google.inject.Injector,
factory : ContextFactory,
rootContextId : UUID,
rootDefaultSpaceId : UUID,
logger : LoggingService)
Replies the kernel instance.
|
IServiceManager |
provideServiceManager(services : Set<com.google.common.util.concurrent.Service>,
config : javax.inject.Provider<SreConfig>)
Replies the manager of the SRE services.
|
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected def
configure() : void
configure
in class com.google.inject.AbstractModule
@Provides
@Singleton
public def
provideKernelContext(injector : com.google.inject.Injector,
factory : ContextFactory,
@Named(value="sre.boot.rootContextId")
rootContextId : UUID,
@Named(value="sre.boot.rootSpaceId")
rootDefaultSpaceId : UUID,
logger : LoggingService) : Context
KernelModule
injector
- the current injector.factory
- the factory of context for creating the root context.rootContextId
- the identifier of the root context.rootDefaultSpaceId
- the identifier of the root default space.logger
- the logging service.@Provides
@Singleton
@Pure
public def
provideServiceManager(services : Set<com.google.common.util.concurrent.Service>,
config : javax.inject.Provider<SreConfig>) : IServiceManager
KernelModule
services
- the SRE services.config
- the provider of configuration.Copyright © 2021 the original authors or authors.