Skip to content

Commit

Permalink
支持功能点 knightliao/disconf#67
Browse files Browse the repository at this point in the history
希望能增加非注解的回调类来处理更新配置
  • Loading branch information
knightliao committed Mar 23, 2016
1 parent cebc0a5 commit c4b795a
Showing 1 changed file with 20 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package com.example.disconf.demo.service.callbacks;

import org.springframework.stereotype.Service;

import com.baidu.disconf.client.common.update.IDisconfUpdatePipeline;

/**
* Created by knightliao on 16/3/22.
*/
@Service
public class UpdatePipelineCallback implements IDisconfUpdatePipeline {

public void reloadDisconfFile(String key, String filePath) throws Exception {
System.out.println(key + " : " + filePath);
}

public void reloadDisconfItem(String key, Object content) throws Exception {
System.out.println(key + " : " + content);
}
}

0 comments on commit c4b795a

Please sign in to comment.