All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.sitoolkit.wt.app.compareevidence.DiffEvidenceGeneratorConfig Maven / Gradle / Ivy

There is a newer version: 2.3
Show newest version
package org.sitoolkit.wt.app.compareevidence;

import javax.annotation.Resource;

import org.sitoolkit.wt.app.config.BaseConfig;
import org.sitoolkit.wt.domain.evidence.DiffEvidence;
import org.sitoolkit.wt.domain.evidence.ReportOpener;
import org.sitoolkit.wt.infra.template.TemplateEngine;
import org.sitoolkit.wt.infra.template.TemplateEngineVelocityImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Import;

@Configuration
@Import(BaseConfig.class)
public class DiffEvidenceGeneratorConfig {

    @Resource
    @Bean
    public DiffEvidenceGenerator DiffEvidenceGenerator(DiffEvidence diffEvidence,
            TemplateEngine templateEngine) {
        DiffEvidenceGenerator generator = new DiffEvidenceGenerator();
        generator.setCompareEvidence(diffEvidence);
        generator.setTemplateEngine(templateEngine);
        return generator;
    }

    @Bean
    public DiffEvidence diffEvidence() {
        return new DiffEvidence();
    }

    @Bean
    public TemplateEngine templateEngine() {
        return new TemplateEngineVelocityImpl();
    }

    @Bean
    public MaskScreenshotGenerator maskScreenshotGenerator() {
        return new MaskScreenshotGenerator();
    }

    @Bean
    public MaskEvidenceGenerator maskEvidenceGenerator() {
        return new MaskEvidenceGenerator();
    }

    @Bean
    public EvidenceReportEditor evidenceReportEditor() {
        return new EvidenceReportEditor();
    }

    @Bean
    public ReportOpener reportOpener() {
        return new ReportOpener();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy