Interface GenerationContext

All Known Implementing Classes:
DefaultGenerationContext

public interface GenerationContext
Central interface used for code generation.

A generation context provides:

Since:
6.0
Author:
Phillip Webb, Stephane Nicoll
  • Method Details

    • getClassNameGenerator

      ClassNameGenerator getClassNameGenerator()
      Return the ClassNameGenerator being used by the context. Allows new class names to be generated before they are added to the generated files.
      Returns:
      the class name generator
      See Also:
    • getClassGenerator

      ClassGenerator getClassGenerator()
      Return the GeneratedClasses being used by the context. Allows a single generated class to be shared across multiple AOT processors. All generated classes are written at the end of AOT processing.
      Returns:
      the generated classes
    • getGeneratedFiles

      GeneratedFiles getGeneratedFiles()
      Return the GeneratedFiles being used by the context. Used to write resource, java source or class bytecode files.
      Returns:
      the generated files
    • getRuntimeHints

      RuntimeHints getRuntimeHints()
      Return the RuntimeHints being used by the context. Used to record reflection, resource, serialization and proxy hints so that the application can run as a native image.
      Returns:
      the runtime hints