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

dev.logchange.hofund.connection.springboot.autoconfigure.ConnectionTabelAutoConfigure Maven / Gradle / Ivy

There is a newer version: 2.2.0
Show newest version
package dev.logchange.hofund.connection.springboot.autoconfigure;

import dev.logchange.hofund.connection.HofundConnectionsTable;
import dev.logchange.hofund.connection.HofundConnectionsProvider;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;

@Slf4j
@Configuration(proxyBeanMethods = false)
public class ConnectionTabelAutoConfigure {

    @Bean
    @ConditionalOnMissingBean
    @ConditionalOnProperty(name = "hofund.connections-tabel", havingValue = "true", matchIfMissing = true)
    public HofundConnectionsTable connectionsTable(List hofundConnectionsProviders) {
        return new HofundConnectionsTable(hofundConnectionsProviders);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy