All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.protostuff.generator.CompilerRegistry Maven / Gradle / Ivy

There is a newer version: 3.1.40
Show newest version
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