Skip to content

Commit

Permalink
move hash handler before cache
Browse files Browse the repository at this point in the history
  • Loading branch information
code4craft committed Jul 16, 2013
1 parent 6867732 commit f3b2b40
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package us.codecraft.blackhole.answer;

import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.LinkedList;
Expand All @@ -16,15 +15,6 @@ public class PostAnswerHandler extends AbstractAnswerHandler implements Initiali

private List<AnswerProvider> answerProviders;

@Autowired
private AnswerPatternProvider answerPatternProvider;

@Autowired
private TempAnswerProvider tempAnswerContainer;

@Autowired
private SafeHostAnswerProvider safeHostAnswerProvider;

/*
* (non-Javadoc)
*
Expand All @@ -38,9 +28,6 @@ public void afterPropertiesSet() throws Exception {

public void regitestProviders() {
answerProviders = new LinkedList<AnswerProvider>();
answerProviders.add(tempAnswerContainer);
answerProviders.add(answerPatternProvider);
answerProviders.add(safeHostAnswerProvider);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,17 @@ public class PreAnswerHandler extends AbstractAnswerHandler implements Initializ
@Autowired
private CustomAnswerPatternProvider customAnswerPatternProvider;

/*
@Autowired
private AnswerPatternProvider answerPatternProvider;

@Autowired
private TempAnswerProvider tempAnswerContainer;

@Autowired
private SafeHostAnswerProvider safeHostAnswerProvider;


/*
* (non-Javadoc)
*
* @see
Expand All @@ -37,6 +47,9 @@ public void regitestProviders() {
answerProviders = new LinkedList<AnswerProvider>();
answerProviders.add(customTempAnswerProvider);
answerProviders.add(customAnswerPatternProvider);
answerProviders.add(tempAnswerContainer);
answerProviders.add(answerPatternProvider);
answerProviders.add(safeHostAnswerProvider);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@ public void readConfig(String filename) {
@Override
public void reload() {
readConfig(Configure.getZonesFilename());
cacheManager.clearCache();
}

/*
Expand Down

0 comments on commit f3b2b40

Please sign in to comment.