Example usage for org.eclipse.jgit.lib Config get

List of usage examples for org.eclipse.jgit.lib Config get

Introduction

In this page you can find the example usage for org.eclipse.jgit.lib Config get.

Prototype

@SuppressWarnings("unchecked")
public <T> T get(SectionParser<T> parser) 

Source Link

Document

Obtain a handle to a parsed set of configuration values.

Usage

From source file:com.google.gerrit.server.GerritPersonIdentProvider.java

License:Apache License

@Inject
public GerritPersonIdentProvider(@GerritServerConfig final Config cfg) {
    String name = cfg.getString("user", null, "name");
    if (name == null) {
        name = "Gerrit Code Review";
    }//  w  ww  .  j a  va  2s.c o m
    this.name = name;
    email = cfg.get(UserConfig.KEY).getCommitterEmail();
}

From source file:com.google.gitiles.doc.MarkdownConfig.java

License:Apache License

public static MarkdownConfig get(Config cfg) {
    return cfg.get(CONFIG_PARSER);
}