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

com.nepxion.discovery.plugin.configcenter.loader.LocalConfigLoader Maven / Gradle / Ivy

Go to download

Nepxion Discovery is a solution for Spring Cloud with blue green, gray, weight, limitation, circuit breaker, degrade, isolation, monitor, tracing, dye, failover, async agent

There is a newer version: 6.22.0
Show newest version
package com.nepxion.discovery.plugin.configcenter.loader;

/**
 * 

Title: Nepxion Discovery

*

Description: Nepxion Discovery

*

Copyright: Copyright (c) 2017-2050

*

Company: Nepxion

* @author Haojun Ren * @version 1.0 */ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.context.ApplicationContext; import com.nepxion.discovery.plugin.framework.util.FileContextUtil; public abstract class LocalConfigLoader implements ConfigLoader { @Autowired private ApplicationContext applicationContext; @Override public String[] getConfigList() throws Exception { String path = getPath(); String[] config = new String[1]; config[0] = FileContextUtil.getText(applicationContext, path); return config; } protected abstract String getPath(); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy