Package io.kroxylicious.krpccodegen.main
Class KrpcGenerator
java.lang.Object
io.kroxylicious.krpccodegen.main.KrpcGenerator
Code generator driven by Apache Kafka message specifications definitions.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Generates the sources.static KrpcGenerator.Buildermulti()Constructs a generator in multi-mode.static KrpcGenerator.Buildersingle()Constructs a generator in single mode.
-
Method Details
-
single
Constructs a generator in single mode. The generator passes a list of all message specifications to the template which is used to produce a single output file.- Returns:
- the builder
-
multi
Constructs a generator in multi-mode. The generator each message specification to the generator in turn, each of which produces a distinct output file.- Returns:
- the builder
-
generate
Generates the sources.- Throws:
Exception- exception during source generation.
-