Browse Source

删除 DisconfMgrJustHostFileBean

knightliao 8 years ago
parent
commit
a5a05eaf5c

+ 0 - 67
disconf-client/src/main/java/com/baidu/disconf/client/mybeans/DisconfMgrJustHostFileBean.java

@@ -1,67 +0,0 @@
-package com.baidu.disconf.client.mybeans;
-
-import java.util.HashSet;
-import java.util.Set;
-
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-import org.springframework.beans.BeansException;
-import org.springframework.beans.factory.config.ConfigurableListableBeanFactory;
-import org.springframework.beans.factory.support.BeanDefinitionRegistry;
-import org.springframework.beans.factory.support.BeanDefinitionRegistryPostProcessor;
-import org.springframework.core.Ordered;
-import org.springframework.core.PriorityOrdered;
-
-import com.baidu.disconf.client.store.inner.DisconfCenterHostFilesStore;
-
-/**
- * 进行配置文件托管的bean: 启动时自动下载此配置;更改配置时,亦会自动下载此配置。不会进行java bean类的注入。
- *
- * @author knightliao
- */
-@Deprecated
-public class DisconfMgrJustHostFileBean implements BeanDefinitionRegistryPostProcessor, PriorityOrdered {
-
-    protected static final Logger log = LoggerFactory.getLogger(DisconfMgrJustHostFileBean.class);
-
-    private Set<String> justHostFiles = new HashSet<String>();
-
-    @Override
-    public String toString() {
-        return "DisconfMgrJustHostFileBean [justHostFiles=" + justHostFiles + "]";
-    }
-
-    public Set<String> getJustHostFiles() {
-        return justHostFiles;
-    }
-
-    public void setJustHostFiles(Set<String> justHostFiles) {
-        this.justHostFiles = justHostFiles;
-    }
-
-    @Override
-    public void postProcessBeanFactory(ConfigurableListableBeanFactory beanFactory) throws BeansException {
-    }
-
-    @Override
-    public int getOrder() {
-        return Ordered.HIGHEST_PRECEDENCE;
-    }
-
-    @Override
-    public void postProcessBeanDefinitionRegistry(BeanDefinitionRegistry registry) throws BeansException {
-
-        if (justHostFiles != null) {
-
-            for (String file : justHostFiles) {
-                if (file != null) {
-                    String fileName = file.trim();
-                    log.debug("disconf no-reloadable file: " + fileName);
-                    // 添加到配置文件托管列表里
-                    DisconfCenterHostFilesStore.getInstance().addJustHostFile(fileName);
-                }
-            }
-        }
-    }
-
-}

+ 1 - 0
docs/source/index.rst

@@ -26,4 +26,5 @@ Distributed Configuration Management Platform(分布式配置管理平台)
    question/index
    others/src/contribute
    others/src/sponsor
+   design/src/update
    design/index

+ 2 - 2
docs/source/install/src/02.rst

@@ -77,7 +77,7 @@ How to deploy
 
 ::
 
-    home/work/dsp/disconf-rd/online-resources
+    /home/work/dsp/disconf-rd/online-resources
 
 **如果不确定如何配置,可以拷贝/disconf-web/profile/rd/目录下的文件,拷贝过去后修改即可。**
 
@@ -243,7 +243,7 @@ Nginx(处理静态请求) + Tomcat(处理动态请求)
 
 -  **后端**
 
-   -  SpringMvc(3.1.2+)
+   -  SpringMvc(Spring 4.1.7.RELEASE)
    -  Jdbc-Template
    -  Mysql
    -  RestFul API

+ 11 - 0
docs/source/others/update.md

@@ -0,0 +1,11 @@
+
+## 2.6.36
+
+待发布
+
+- disconf-web:
+    - 配置和配置项可支持自定义app https://github.com/knightliao/disconf/issues/147 
+- disconf-client:
+    - 支持https的web端 https://github.com/knightliao/disconf/issues/158
+    - path支持windows: https://github.com/knightliao/disconf/issues/166
+    - 删除类 DisconfMgrJustHostFileBean

+ 1 - 2
docs/source/tutorial-client/Tutorial5.md

@@ -1,8 +1,7 @@
 Tutorial 5 基于XML的分布式配置文件管理,不会自动reload
 =======
 
-在 [Tutorial 1](Tutorial1.html) 里, 
-我们实现了一个简单的Redis服务程序,它使用分布式配置进行管理,此Redis的配置文件存储在分布式服务器 disconf-web 上。它使用的是注解式的配置管理。
+在 [Tutorial 1](Tutorial1.html) 里, 我们实现了一个简单的Redis服务程序,它使用分布式配置进行管理,此Redis的配置文件存储在分布式服务器 disconf-web 上。它使用的是注解式的配置管理。
 
 Disconf亦支持非注解式的分布式配置管理,下面定义一下概念:
 

+ 3 - 3
docs/source/tutorial-client/src/Tutorial5.rst

@@ -1,9 +1,9 @@
 Tutorial 5 基于XML的分布式配置文件管理,不会自动reload
 =====================================================
 
-| 在 `Tutorial 1 <Tutorial1.html>`__ 里,
-| 我们实现了一个简单的Redis服务程序,它使用分布式配置进行管理,此Redis的配置文件存储在分布式服务器
-  disconf-web 上。它使用的是注解式的配置管理。
+在 `Tutorial 1 <Tutorial1.html>`__ 里,
+我们实现了一个简单的Redis服务程序,它使用分布式配置进行管理,此Redis的配置文件存储在分布式服务器
+disconf-web 上。它使用的是注解式的配置管理。
 
 Disconf亦支持非注解式的分布式配置管理,下面定义一下概念:
 

+ 2 - 1
docs/source/tutorial-client/src/jar-start-up.rst

@@ -7,7 +7,8 @@
 主要升级点
 ~~~~~~~~~~
 
-当使用以-jar方式启动的程序(非tomcat,web方式)时,例如springboot时,可以无缝对接(不会出现配置文件找不到的情况)
+当使用以 -jar 方式启动的程序(非tomcat,web方式)时,例如 springboot
+时,可以无缝对接(不会出现配置文件找不到的情况)
 
 正确的使用方式
 ~~~~~~~~~~~~~~

+ 6 - 6
docs/source/tutorial-web/12-open-api-for-web-client.md

@@ -1,21 +1,21 @@
 Tutorial 12 disconf-web 为客户端 开放的 Http API
 =======
 
-# 前言
+## 前言
 
 - 目标:让开发者具有自定义开发客户端的能力
 - 目前已经支持 java
 
-# 准备
+## 准备
 
 - 1. 获取配置时是从disconf-web获取
 - 2. 得到配置更新时是从ZK上获取,得到通知后,再从disconf-web上获取配置值
 
-## 获取配置接口
+### 获取配置接口
 
 以下接口均不需要权限控制,Http-Rest 风格
 
-### /api/config/item
+#### /api/config/item
 
 - 描述:获取配置项
 - url示例: /api/config/item?app=disconf_demo&env=rd&version=1_0_0_0&key=discountRate
@@ -39,7 +39,7 @@ Tutorial 12 disconf-web 为客户端 开放的 Http API
         {"status":1,"message":"","value":"0.5"}
 
     
-### /api/config/file
+#### /api/config/file
 
 - 描述:获取配置文件
 - url示例: /api/config/file?app=disconf_demo&env=rd&version=1_0_0_0&key=autoconfig.properties
@@ -61,7 +61,7 @@ Tutorial 12 disconf-web 为客户端 开放的 Http API
         xx%
 
 
-## 得到更新通知的接口
+### 得到更新通知的接口
 
 客户端程序需要进行订阅ZK结点
 

+ 6 - 6
docs/source/tutorial-web/src/12-open-api-for-web-client.rst

@@ -2,13 +2,13 @@ Tutorial 12 disconf-web 为客户端 开放的 Http API
 ================================================
 
 前言
-====
+----
 
 -  目标:让开发者具有自定义开发客户端的能力
 -  目前已经支持 java
 
 准备
-====
+----
 
 -  
 
@@ -19,12 +19,12 @@ Tutorial 12 disconf-web 为客户端 开放的 Http API
    #. 得到配置更新时是从ZK上获取,得到通知后,再从disconf-web上获取配置值
 
 获取配置接口
-------------
+~~~~~~~~~~~~
 
 以下接口均不需要权限控制,Http-Rest 风格
 
 /api/config/item
-~~~~~~~~~~~~~~~~
+^^^^^^^^^^^^^^^^
 
 -  描述:获取配置项
 -  url示例:
@@ -56,7 +56,7 @@ Tutorial 12 disconf-web 为客户端 开放的 Http API
        {"status":1,"message":"","value":"0.5"}
 
 /api/config/file
-~~~~~~~~~~~~~~~~
+^^^^^^^^^^^^^^^^
 
 -  描述:获取配置文件
 -  url示例:
@@ -86,7 +86,7 @@ Tutorial 12 disconf-web 为客户端 开放的 Http API
        xx%
 
 得到更新通知的接口
-------------------
+~~~~~~~~~~~~~~~~~~
 
 客户端程序需要进行订阅ZK结点