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

es.urjc.etsii.grafo.solver.RunOnStart Maven / Gradle / Ivy

package es.urjc.etsii.grafo.solver;

import es.urjc.etsii.grafo.orchestrator.AbstractOrchestrator;
import org.springframework.boot.CommandLineRunner;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Service;

@Service
@Profile("!test")
public class RunOnStart implements CommandLineRunner {

    private final AbstractOrchestrator orchestrator;

    public RunOnStart(AbstractOrchestrator orchestrator) {
        this.orchestrator = orchestrator;
    }

    @Override
    public void run(String... args) throws Exception {
        this.orchestrator.run(args);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy