Class IBindingContext.BindingContextBuilder
java.lang.Object
gov.nist.secauto.metaschema.databind.IBindingContext.BindingContextBuilder
- Enclosing interface:
- IBindingContext
Enables building a
IBindingContext
using common configuration options
based on the builder pattern.- Since:
- 2.0.0
-
Constructor Summary
ConstructorDescriptionConstruct a new builder. -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build aIBindingContext
using the configuration options provided to the builder.compilePath
(Path path) Enable dynamic code generation and compilation for Metaschema module-based classes.Configure a set of constraints targeting Metaschema modules.Configure a collection of constraint sets targeting Metaschema modules.postProcessor
(IModuleLoader.IModulePostProcessor processor) Configure a Metaschema module post processor.
-
Constructor Details
-
BindingContextBuilder
public BindingContextBuilder(@NonNull Function<IBindingContext.IModuleLoaderStrategy, IBindingContext> initializer) Construct a new builder.- Parameters:
initializer
- the callback to use to get a new binding context instance
-
-
Method Details
-
compilePath
Enable dynamic code generation and compilation for Metaschema module-based classes.- Parameters:
path
- the path to use to generate and compile Metaschema module-based classes- Returns:
- this builder
-
postProcessor
@NonNull public IBindingContext.BindingContextBuilder postProcessor(@NonNull IModuleLoader.IModulePostProcessor processor) Configure a Metaschema module post processor.- Parameters:
processor
- the post processor to configure- Returns:
- this builder
-
constraintSet
Configure a set of constraints targeting Metaschema modules.- Parameters:
set
- the constraint set to configure- Returns:
- this builder
-
constraintSet
@NonNull public IBindingContext.BindingContextBuilder constraintSet(@NonNull Collection<IConstraintSet> set) Configure a collection of constraint sets targeting Metaschema modules.- Parameters:
set
- the constraint sets to configure- Returns:
- this builder
-
build
Build aIBindingContext
using the configuration options provided to the builder.- Returns:
- a new, configured binding context
-