nscn.polaris2.protoc.bridge.frontend.PluginFrontend
See thePluginFrontend companion object
trait PluginFrontend
Platform-specific plumbing that lets protoc talk to a generator inside this JVM.
protoc only knows how to launch executables that read a CodeGeneratorRequest from stdin and write a CodeGeneratorResponse to stdout. A frontend therefore fabricates a tiny executable whose only job is to forward those two streams into this process:
- protoc writes the request to the plugin's stdin
- the plugin forwards it over a pipe or socket
- this JVM reads it, runs the generator
- this JVM writes the response back over the channel and closes it
- the plugin copies that to its stdout, where protoc picks it up
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Members list
In this article