Interface CodegenExtensionProvider

All Superinterfaces:
CodegenProvider
All Known Implementing Classes:
BuilderCodegenProvider, ConfigMetadataCodegenProvider, ServiceRegistryCodegenProvider

public interface CodegenExtensionProvider extends CodegenProvider
Java ServiceLoader provider interface for extensions used to process and code generate. Each implementation will be called with types that match its declared CodegenProvider.supportedAnnotations() and CodegenProvider.supportedAnnotationPackages().
  • Method Details

    • create

      CodegenExtension create(CodegenContext ctx, TypeName generatorType)
      Create a new instance of the extension provider.
      Parameters:
      ctx - codegen context for the current environment
      generatorType - type of the generator (annotation processor, maven plugin etc.), for reporting purposes
      Returns:
      a new codegen extension