Package io.quarkus.grpc.deployment
Class GrpcCodeGen
- java.lang.Object
-
- io.quarkus.grpc.deployment.GrpcCodeGen
-
- All Implemented Interfaces:
CodeGenProvider
public class GrpcCodeGen extends Object implements CodeGenProvider
Code generation for gRPC. Generates java classes from proto files placed in either src/main/proto or src/test/proto Inspired by Protobuf Maven Plugin
-
-
Constructor Summary
Constructors Constructor Description GrpcCodeGen()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringinputDirectory()StringinputExtension()StringproviderId()booleanshouldRun(Path sourceDir, org.eclipse.microprofile.config.Config config)booleantrigger(CodeGenContext context)
-
-
-
Method Detail
-
providerId
public String providerId()
- Specified by:
providerIdin interfaceCodeGenProvider
-
inputExtension
public String inputExtension()
- Specified by:
inputExtensionin interfaceCodeGenProvider
-
inputDirectory
public String inputDirectory()
- Specified by:
inputDirectoryin interfaceCodeGenProvider
-
trigger
public boolean trigger(CodeGenContext context) throws io.quarkus.bootstrap.prebuild.CodeGenException
- Specified by:
triggerin interfaceCodeGenProvider- Throws:
io.quarkus.bootstrap.prebuild.CodeGenException
-
shouldRun
public boolean shouldRun(Path sourceDir, org.eclipse.microprofile.config.Config config)
- Specified by:
shouldRunin interfaceCodeGenProvider
-
-