Merge "Rename PluginConfigProvider to PluginConfigFactory."

This commit is contained in:
Edwin Kempin
2013-09-20 12:11:29 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 4 deletions

View File

@@ -351,14 +351,14 @@ only use the `plugin` subsection with their own name. For example the
language = Latin
----
Via the `com.google.gerrit.server.config.PluginConfigProvider` class a
Via the `com.google.gerrit.server.config.PluginConfigFactory` class a
plugin can easily access its configuration and there is no need for a
plugin to parse the `gerrit.config` file on its own:
[source,java]
----
@Inject
private com.google.gerrit.server.config.PluginConfigProvider cfg;
private com.google.gerrit.server.config.PluginConfigFactory cfg;
...

View File

@@ -20,11 +20,11 @@ import com.google.inject.Singleton;
import org.eclipse.jgit.lib.Config;
@Singleton
public class PluginConfigProvider {
public class PluginConfigFactory {
private final Config cfg;
@Inject
PluginConfigProvider(@GerritServerConfig Config cfg) {
PluginConfigFactory(@GerritServerConfig Config cfg) {
this.cfg = cfg;
}