Class PluginGuiceEnvironment

java.lang.Object
com.google.gerrit.server.plugins.PluginGuiceEnvironment

public class PluginGuiceEnvironment extends Object
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 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

      public RequestContext enter(Plugin plugin)
    • exit

      public void exit(RequestContext old)
    • onStartPlugin

      public void onStartPlugin(Plugin plugin)
    • onStopPlugin

      public void onStopPlugin(Plugin plugin)
    • getApiInjector

      public com.google.inject.Injector getApiInjector()