Package com.google.gerrit.server.plugins
Class PluginGuiceEnvironment
java.lang.Object
com.google.gerrit.server.plugins.PluginGuiceEnvironment
Tracks Guice bindings that should be exposed to loaded plugins.
This is an internal implementation detail of how the main server is able to export its explicit Guice bindings to tightly coupled plugins, giving them access to singletons and request scoped resources just like any core code.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
exit
(RequestContext old) com.google.inject.Injector
com.google.inject.Module
com.google.inject.Module
void
onStartPlugin
(Plugin plugin) void
onStopPlugin
(Plugin plugin) void
setDbCfgInjector
(com.google.inject.Injector dbInjector, com.google.inject.Injector cfgInjector) void
setHttpInjector
(com.google.inject.Injector injector) void
setSshInjector
(com.google.inject.Injector injector)
-
Method Details
-
getSysModule
public com.google.inject.Module getSysModule() -
setDbCfgInjector
public void setDbCfgInjector(com.google.inject.Injector dbInjector, com.google.inject.Injector cfgInjector) -
setSshInjector
public void setSshInjector(com.google.inject.Injector injector) -
setHttpInjector
public void setHttpInjector(com.google.inject.Injector injector) -
getHttpModule
public com.google.inject.Module getHttpModule() -
enter
-
exit
-
onStartPlugin
-
onStopPlugin
-
getApiInjector
public com.google.inject.Injector getApiInjector()
-