in src/main/java/com/googlesource/gerrit/plugins/readonly/Module.java [26:37]
protected void configure() {
DynamicSet.bind(binder(), CommitValidationListener.class).to(ReadOnly.class);
install(
new RestApiModule() {
@Override
protected void configure() {
put(CONFIG_KIND, "readonly").to(ReadOnlyEndpoint.Put.class);
delete(CONFIG_KIND, "readonly").to(ReadOnlyEndpoint.Delete.class);
get(CONFIG_KIND, "readonly").to(ReadOnlyEndpoint.Get.class);
}
});
}