
io.protostuff.compiler.parser.DefaultDescriptorProtoProvider Maven / Gradle / Ivy
package io.protostuff.compiler.parser;
import javax.inject.Inject;
import javax.inject.Provider;
/**
* @author Kostiantyn Shchepanovskyi
*/
public class DefaultDescriptorProtoProvider implements Provider {
public static final String DESCRIPTOR_PROTO = "descriptor.proto";
private final Importer importer;
@Inject
public DefaultDescriptorProtoProvider(Importer importer) {
this.importer = importer;
}
@Override
public ProtoContext get() {
return importer.importFile(new ClasspathFileReader(), "google/protobuf/__descriptor.proto");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy