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

io.github.devsecops.engine.mojos.containers.jenkins.DeployJenkinsFactory Maven / Gradle / Ivy

There is a newer version: 3.4.0
Show newest version
package io.github.devsecops.engine.mojos.containers.jenkins;

import io.github.devsecops.engine.core.CommandInvoker;
import io.github.devsecops.engine.core.Log;
import io.github.devsecops.engine.core.contract.Command;
import io.github.devsecops.engine.core.contract.Factory;
import io.github.devsecops.engine.core.contract.Invoker;
import io.github.devsecops.engine.domain.pom.commands.PomValidatorCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.Stack;

@Service
public class DeployJenkinsFactory implements Factory {

    @Autowired
    private Log logger;

    @Autowired
    private PomValidatorCommand validatorCommand;

    @Override
    public Invoker build(Map parameters) throws Exception {
        Stack commands = new Stack<>();
        commands.push(validatorCommand);
        return new CommandInvoker(commands, logger);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy