io.protostuff.generator.CompilerRegistry Maven / Gradle / Ivy
package io.protostuff.generator;
import java.util.Map;
import java.util.Set;
import javax.annotation.Nullable;
import javax.inject.Inject;
/**
* Registry of proto compilers (code generators).
*
* @author Kostiantyn Shchepanovskyi
*/
public class CompilerRegistry {
private final Map compilers;
@Inject
public CompilerRegistry(Map compilers) {
this.compilers = compilers;
}
@Nullable
public ProtoCompiler findCompiler(String name) {
return compilers.get(name);
}
public Set availableCompilers() {
return compilers.keySet();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy