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

com.farao_community.farao.cse.adapter.app.CseImportAdapterConfiguration Maven / Gradle / Ivy

The newest version!
/*
 * Copyright (c) 2021, 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.cse.adapter.app;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;

/**
 * @author Joris Mancini {@literal }
 */
@Configuration
@ConditionalOnProperty(prefix = "cse-adapter", value = "exchange-type", havingValue = "import")
public class CseImportAdapterConfiguration {

    @Value("${cse-adapter.process-type}")
    private String processType;

    @Value("${cse-adapter.is-ec-import:false}")
    private boolean isEcImport;

    public ProcessType getProcessType() {
        return ProcessType.valueOf(processType);
    }

    public boolean isEcImport() {
        return isEcImport;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy