com.nepxion.discovery.plugin.configcenter.zookeeper.configuration.ZookeeperConfigAutoConfiguration Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discovery-plugin-config-center-starter-zookeeper Show documentation
Show all versions of discovery-plugin-config-center-starter-zookeeper Show documentation
Nepxion Discovery is a solution for Spring Cloud with blue green, gray, weight, limitation, circuit breaker, degrade, isolation, monitor, tracing, dye, failover, async agent
package com.nepxion.discovery.plugin.configcenter.zookeeper.configuration;
/**
* Title: Nepxion Discovery
* Description: Nepxion Discovery
* Copyright: Copyright (c) 2017-2050
* Company: Nepxion
* @author rotten
* @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.plugin.configcenter.adapter.ConfigAdapter;
import com.nepxion.discovery.plugin.configcenter.zookeeper.adapter.ZookeeperConfigAdapter;
import com.taobao.text.Color;
@Configuration
public class ZookeeperConfigAutoConfiguration {
static {
/*String bannerShown = System.getProperty(BannerConstant.BANNER_SHOWN, "true");
if (Boolean.valueOf(bannerShown)) {
System.out.println("");
System.out.println("╔════╗ ╔╗");
System.out.println("╚══╗═║ ║║");
System.out.println(" ╔╝╔╬══╦══╣║╔╦══╦══╦══╦══╦═╗");
System.out.println(" ╔╝╔╝║╔╗║╔╗║╚╝╣║═╣║═╣╔╗║║═╣╔╝");
System.out.println("╔╝═╚═╣╚╝║╚╝║╔╗╣║═╣║═╣╚╝║║═╣║");
System.out.println("╚════╩══╩══╩╝╚╩══╩══╣╔═╩══╩╝");
System.out.println(" ║║");
System.out.println(" ╚╝");
System.out.println(ZookeeperConstant.DISCOVERY_PLUGIN + " Discovery");
System.out.println("");
}*/
LogoBanner logoBanner = new LogoBanner(ZookeeperConfigAutoConfiguration.class, "/com/nepxion/zookeeper/resource/logo.txt", "Welcome to Nepxion", 9, 5, new Color[] { Color.red, Color.green, Color.cyan, Color.blue, Color.yellow, Color.magenta, Color.red, Color.green, Color.cyan }, true);
NepxionBanner.show(logoBanner, new Description("Config:", ConfigType.ZOOKEEPER.toString(), 0, 1), new Description(BannerConstant.GITHUB + ":", BannerConstant.NEPXION_GITHUB + "/Discovery", 0, 1));
}
@Bean
public ConfigAdapter configAdapter() {
return new ZookeeperConfigAdapter();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy