Search in sources :

Example 1 with AbstractSiteRuleWithPageResultImplementation

use of org.asqatasun.ruleimplementation.AbstractSiteRuleWithPageResultImplementation in project Asqatasun by Asqatasun.

the class RuleImplementationLoaderServiceImpl method loadRuleImplementation.

@Override
public RuleImplementation loadRuleImplementation(Test test) {
    RuleImplementationLoader ruleImplementationLoader = ruleImplementationLoaderFactory.create(archiveRoot, test.getRuleArchiveName(), test.getRuleClassName());
    ruleImplementationLoader.run();
    RuleImplementation ruleImplementation = ruleImplementationLoader.getResult();
    ruleImplementation.setTest(test);
    ruleImplementation.setProcessResultDataService(processResultDataService);
    ruleImplementation.setNomenclatureLoaderService(nomenclatureLoaderService);
    // of a given ProcessResult in this case
    if (ruleImplementation instanceof AbstractSiteRuleWithPageResultImplementation) {
        ((AbstractSiteRuleWithPageResultImplementation) ruleImplementation).setProcessRemarkDataService(processRemarkDataService);
    }
    return ruleImplementation;
}
Also used : AbstractSiteRuleWithPageResultImplementation(org.asqatasun.ruleimplementation.AbstractSiteRuleWithPageResultImplementation) RuleImplementationLoader(org.asqatasun.ruleimplementationloader.RuleImplementationLoader) RuleImplementation(org.asqatasun.ruleimplementation.RuleImplementation)

Aggregations

AbstractSiteRuleWithPageResultImplementation (org.asqatasun.ruleimplementation.AbstractSiteRuleWithPageResultImplementation)1 RuleImplementation (org.asqatasun.ruleimplementation.RuleImplementation)1 RuleImplementationLoader (org.asqatasun.ruleimplementationloader.RuleImplementationLoader)1