Package io.quarkus.deployment
Interface CodeGenProvider
-
public interface CodeGenProviderService providers for this interfaces are triggered during generate-sources phase of build of Quarkus applications
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringinputDirectory()Name of the directory containing the input files for the CodeGenProvider forfoo,src/main/foofor application andsrc/test/foofor test resourcesStringinputExtension()File extension that CodeGenProvider will generate code fromStringproviderId()booleantrigger(CodeGenContext context)Trigger code generation
-
-
-
Method Detail
-
providerId
@NotNull String providerId()
- Returns:
- unique name of the code gen provider, will correspond to the directory in
generated-sources
-
inputExtension
@NotNull String inputExtension()
File extension that CodeGenProvider will generate code from- Returns:
- file extension
-
inputDirectory
@NotNull String inputDirectory()
Name of the directory containing the input files for the CodeGenProvider forfoo,src/main/foofor application andsrc/test/foofor test resources- Returns:
- the input directory
-
trigger
boolean trigger(CodeGenContext context) throws CodeGenException
Trigger code generation- Parameters:
context- code generation context- Returns:
- true if files were generated/modified
- Throws:
CodeGenException
-
-