Package com.google.gerrit.server.config
Class GerritServerConfigProvider
- java.lang.Object
-
- com.google.gerrit.server.config.GerritServerConfigProvider
-
- All Implemented Interfaces:
com.google.inject.Provider<org.eclipse.jgit.lib.Config>
,javax.inject.Provider<org.eclipse.jgit.lib.Config>
public class GerritServerConfigProvider extends Object implements com.google.inject.Provider<org.eclipse.jgit.lib.Config>
ProvidesConfig
annotated withGerritServerConfig
.To react on config updates, the caller should implement @see GerritConfigListener.
The few callers that need a reloaded-on-demand config can inject a
GerritServerConfigProvider
and request the lastest config with fetchLatestConfig().
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.jgit.lib.Config
get()
com.google.gerrit.server.config.GerritConfig
loadConfig()
protected ConfigUpdatedEvent
updateConfig()
-
-
-
Method Detail
-
get
public org.eclipse.jgit.lib.Config get()
- Specified by:
get
in interfacecom.google.inject.Provider<org.eclipse.jgit.lib.Config>
- Specified by:
get
in interfacejavax.inject.Provider<org.eclipse.jgit.lib.Config>
-
updateConfig
protected ConfigUpdatedEvent updateConfig()
-
loadConfig
public com.google.gerrit.server.config.GerritConfig loadConfig()
-
-