Class DefinitionSpaceLoader
- java.lang.Object
-
- io.vertigo.core.node.definition.loader.DefinitionSpaceLoader
-
public final class DefinitionSpaceLoader extends Object
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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidendLoading()DefinitionSpaceLoaderloadDefinitions(List<ModuleConfig> moduleConfigs)Inject all the definition of the modules.DefinitionSpaceLoaderloadDefinitionsFromComponents()Inject all the definitions provided by components.static DefinitionSpaceLoaderstartLoading(DefinitionSpaceWritable definitionSpaceWritable, ComponentSpace componentSpace)Loader of definitions
-
-
-
Method Detail
-
startLoading
public static DefinitionSpaceLoader startLoading(DefinitionSpaceWritable definitionSpaceWritable, ComponentSpace componentSpace)
Loader of definitions- Parameters:
componentSpace- the componentSpace
-
loadDefinitions
public DefinitionSpaceLoader loadDefinitions(List<ModuleConfig> moduleConfigs)
Inject all the definition of the modules.- Parameters:
moduleConfigs- module configs- Returns:
- a stream of definitions
-
loadDefinitionsFromComponents
public DefinitionSpaceLoader loadDefinitionsFromComponents()
Inject all the definitions provided by components.
-
endLoading
public void endLoading()
-
-