in src/main/java/com/googlesource/gerrit/plugins/uploadvalidator/ValidatorConfig.java [53:80]
public static AbstractModule module() {
return new AbstractModule() {
@Override
protected void configure() {
bind(ProjectConfigEntry.class)
.annotatedWith(Exports.named(KEY_PROJECT))
.toInstance(
new ProjectConfigEntry(
"Projects",
null,
ProjectConfigEntryType.ARRAY,
null,
false,
"Only projects that match this regex will be validated."));
bind(ProjectConfigEntry.class)
.annotatedWith(Exports.named(KEY_REF))
.toInstance(
new ProjectConfigEntry(
"Refs",
null,
ProjectConfigEntryType.ARRAY,
null,
false,
"Only refs that match this regex will be validated."));
bind(GroupByNameFinder.class).to(GroupByNameFromIndexFinder.class);
}
};
}