com.farao_community.farao.rao_runner.app.configuration.StopConfiguration Maven / Gradle / Ivy
/*
* Copyright (c) 2022, RTE (http://www.rte-france.com)
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
package com.farao_community.farao.rao_runner.app.configuration;
import com.farao_community.farao.rao_runner.app.StopService;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import java.util.function.Consumer;
@Configuration
public class StopConfiguration {
@Bean
public Consumer stop(StopService stopService) {
return stopService::stop;
}
}