Class DefinitionSpaceLoader
java.lang.Object
io.vertigo.core.node.definition.loader.DefinitionSpaceLoader
A DefinitionLoader uses all the DefinitionProviders of all the modules to register all definitions at once at the beginning.
Use DynamoDefinitionProvider to use the DSL.
- Author:
- pchretien
-
Method Summary
Modifier and TypeMethodDescriptionvoidloadDefinitions(List<ModuleConfig> moduleConfigs) Inject all the definition of the modules.Inject all the definitions provided by components.static DefinitionSpaceLoaderstartLoading(DefinitionSpaceWritable definitionSpaceWritable, ComponentSpace componentSpace) Loader of definitions
-
Method Details
-
startLoading
public static DefinitionSpaceLoader startLoading(DefinitionSpaceWritable definitionSpaceWritable, ComponentSpace componentSpace) Loader of definitions- Parameters:
componentSpace- the componentSpace
-
loadDefinitions
Inject all the definition of the modules.- Parameters:
moduleConfigs- module configs- Returns:
- a stream of definitions
-
loadDefinitionsFromComponents
Inject all the definitions provided by components. -
endLoading
public void endLoading()
-