Interface IModuleBindingGenerator

All Known Implementing Classes:
DefaultModuleBindingGenerator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface IModuleBindingGenerator
A functional interface for generating bound Java classes from a Metaschema module.

Implementations of this interface are responsible for generating, compiling, and loading Java classes that represent the module and its definitions.

  • Method Summary

    Modifier and Type
    Method
    Description
    Class<? extends IBoundModule>
    generate(IModule module)
    Generate bound Java classes for the provided Metaschema module.
  • Method Details

    • generate

      @NonNull Class<? extends IBoundModule> generate(@NonNull IModule module) throws MetaschemaException
      Generate bound Java classes for the provided Metaschema module.
      Parameters:
      module - the Metaschema module to generate classes for
      Returns:
      the generated bound module class
      Throws:
      MetaschemaException - if an error occurs during generation or compilation