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

com.nepxion.discovery.console.etcd.configuration.EtcdConfigAutoConfiguration Maven / Gradle / Ivy

package com.nepxion.discovery.console.etcd.configuration;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Congwei Xu * @version 1.0 */ import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import com.nepxion.banner.BannerConstant; import com.nepxion.banner.Description; import com.nepxion.banner.LogoBanner; import com.nepxion.banner.NepxionBanner; import com.nepxion.discovery.common.entity.ConfigType; import com.nepxion.discovery.console.adapter.ConfigAdapter; import com.nepxion.discovery.console.etcd.adapter.EtcdConfigAdapter; import com.taobao.text.Color; @Configuration public class EtcdConfigAutoConfiguration { static { LogoBanner logoBanner = new LogoBanner(EtcdConfigAutoConfiguration.class, "/com/nepxion/etcd/resource/logo.txt", "Welcome to Nepxion", 4, 5, new Color[] { Color.red, Color.green, Color.cyan, Color.blue }, true); NepxionBanner.show(logoBanner, new Description("Config:", ConfigType.ETCD.toString(), 0, 1), new Description(BannerConstant.GITHUB + ":", BannerConstant.NEPXION_GITHUB + "/Discovery", 0, 1)); } @Bean public ConfigAdapter configAdapter() { return new EtcdConfigAdapter(); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy