Module dev.metaschema.databind
Package dev.metaschema.databind.codegen
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.
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 TypeMethodDescriptionClass<? extends IBoundModule>generate(dev.metaschema.core.model.IModule module) Generate bound Java classes for the provided Metaschema module.
-
Method Details
-
generate
@NonNull Class<? extends IBoundModule> generate(@NonNull dev.metaschema.core.model.IModule module) throws dev.metaschema.core.model.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:
dev.metaschema.core.model.MetaschemaException- if an error occurs during generation or compilation
-