Interface IBindingContext.IModuleLoaderStrategy
- All Known Implementing Classes:
SimpleModuleLoaderStrategy
- Enclosing interface:
- IBindingContext
public static interface IBindingContext.IModuleLoaderStrategy
-
Method Summary
Modifier and TypeMethodDescriptiongetBoundDefinitionForClass
(Class<? extends IBoundObject> clazz) Get theIBoundDefinitionModel
instance associated with the provided Java class.loadModule
(Class<? extends IBoundModule> clazz) Load the bound Metaschema module represented by the provided class.
-
Method Details
-
loadModule
Load the bound Metaschema module represented by the provided class.Implementations are allowed to return a cached instance if the module has already been loaded.
- Parameters:
clazz
- the Module class- Returns:
- the module
- Throws:
IllegalStateException
- if an error occurred while processing the associated module information
-
getBoundDefinitionForClass
@Nullable IBoundDefinitionModelComplex getBoundDefinitionForClass(@NonNull Class<? extends IBoundObject> clazz) Get theIBoundDefinitionModel
instance associated with the provided Java class.Typically the class will have a
MetaschemaAssembly
orMetaschemaField
annotation.- Parameters:
clazz
- the class binding to load- Returns:
- the associated class binding instance or
null
if the class is not bound
-