Package org.variantsync.boosting.product
Class VariantInitTask
java.lang.Object
org.variantsync.boosting.product.VariantInitTask
- All Implemented Interfaces:
Callable<VariantInitTask.InitResult>
A Callable task for initializing a product with the given parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the result of initializing a product. -
Constructor Summary
ConstructorsConstructorDescriptionVariantInitTask(int productNumber, VariantPassport passport, ESupportedLanguages targetLanguage) Initializes a ProductInitializationTask with the given product number, product passport, and target language. -
Method Summary
Modifier and TypeMethodDescriptioncall()Parses the sources and creates an InitResult with the created product.
-
Constructor Details
-
VariantInitTask
public VariantInitTask(int productNumber, VariantPassport passport, ESupportedLanguages targetLanguage) Initializes a ProductInitializationTask with the given product number, product passport, and target language.- Parameters:
productNumber- the product number to assign to the taskpassport- the product passport containing information about the producttargetLanguage- the target language for the task
-
-
Method Details
-
call
Parses the sources and creates an InitResult with the created product. This method reads a feature configuration file specified by the configPath parameter, parses the features listed in the file, creates a product AST based on the target language specified, and returns an InitResult object containing the parsed information.- Specified by:
callin interfaceCallable<VariantInitTask.InitResult>- Returns:
- InitResult - an object containing the parsed information
- Throws:
Exception- - if an error occurs during parsing or creating the InitResult object
-