Class YamlInitialValueServiceImpl
java.lang.Object
ch.tocco.nice2.dbrefactoring.impl.data.YamlInitialValueServiceImpl
- All Implemented Interfaces:
YamlInitialValueService
@Component
public class YamlInitialValueServiceImpl
extends Object
implements YamlInitialValueService
-
Constructor Summary
ConstructorDescriptionYamlInitialValueServiceImpl
(ModuleManager moduleManager, L10N l10N, org.slf4j.Logger log) -
Method Summary
Modifier and TypeMethodDescriptionloadData
(@Nullable Set<String> modules, Predicate<ModelResource> fileNamePredicate) load all .yaml files from the db/initialvalues folders of the passed modules and parse them intoYamlInitialValues.YamlInitialValue
for use as initial values after db refactoring was run
-
Constructor Details
-
YamlInitialValueServiceImpl
-
-
Method Details
-
loadData
public Stream<YamlInitialValues.YamlInitialValue> loadData(@Nullable @Nullable Set<String> modules, Predicate<ModelResource> fileNamePredicate) Description copied from interface:YamlInitialValueService
load all .yaml files from the db/initialvalues folders of the passed modules and parse them intoYamlInitialValues.YamlInitialValue
for use as initial values after db refactoring was run- Specified by:
loadData
in interfaceYamlInitialValueService
- Parameters:
modules
- the modules to load the initial values for- Returns:
- a stream of all initial values
-