public class GerritServerConfigProvider
extends java.lang.Object
implements com.google.inject.Provider<org.eclipse.jgit.lib.Config>
Config
annotated with GerritServerConfig
.
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().
Modifier and Type | Method and Description |
---|---|
org.eclipse.jgit.lib.Config |
get() |
com.google.gerrit.server.config.GerritConfig |
loadConfig() |
protected ConfigUpdatedEvent |
updateConfig() |
public org.eclipse.jgit.lib.Config get()
get
in interface javax.inject.Provider<org.eclipse.jgit.lib.Config>
protected ConfigUpdatedEvent updateConfig()
public com.google.gerrit.server.config.GerritConfig loadConfig()