Class SimpleModuleLoaderStrategy

java.lang.Object
dev.metaschema.databind.AbstractModuleLoaderStrategy
dev.metaschema.databind.SimpleModuleLoaderStrategy
All Implemented Interfaces:
IBindingContext.IModuleLoaderStrategy, ModuleLoadingPostProcessor

public class SimpleModuleLoaderStrategy extends AbstractModuleLoaderStrategy
A simple module loader strategy that supports optional dynamic code generation.

By default, dynamic compilation is disabled. To enable dynamic compilation of Metaschema modules into bound Java classes, provide an IModuleBindingGenerator implementation to the constructor.

Since:
2.0.0
  • Constructor Details

    • SimpleModuleLoaderStrategy

      public SimpleModuleLoaderStrategy()
      Construct a new simple module loader strategy with dynamic compilation disabled.
    • SimpleModuleLoaderStrategy

      public SimpleModuleLoaderStrategy(@NonNull IModuleBindingGenerator generator)
      Construct a new simple module loader strategy with the provided binding generator.
      Parameters:
      generator - the generator to use for dynamic module compilation
  • Method Details