Skip to content

Commit

Permalink
DUBBO-568 配置项dispather单词拼写错误。
Browse files Browse the repository at this point in the history
  • Loading branch information
oldratlee committed Aug 21, 2012
1 parent d103c22 commit f1ef1e0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ public void setExchanger(String exchanger) {
}

/**
* 单词拼写错误,请使用getDispatcher()
* 单词拼写错误,请使用{@link #getDispatcher()}
* @deprecated {@link #getDispatcher()}
*/
@Deprecated
Expand All @@ -377,7 +377,7 @@ public String getDispather() {
}

/**
* 单词拼写错误,请使用setDispatcher()
* 单词拼写错误,请使用{@link #setDispatcher(String)
* @deprecated {@link #setDispatcher(String)}
*/
@Deprecated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@

import java.util.Arrays;

import com.alibaba.dubbo.common.Constants;
import com.alibaba.dubbo.common.status.StatusChecker;
import com.alibaba.dubbo.common.threadpool.ThreadPool;
import com.alibaba.dubbo.config.support.Parameter;
Expand Down Expand Up @@ -85,7 +86,7 @@ public class ProviderConfig extends AbstractServiceConfig {
private String exchanger;

// 信息线程模型派发方式
private String dispather;
private String dispatcher;

// 对称网络组网方式
private String networker;
Expand Down Expand Up @@ -343,13 +344,32 @@ public void setExchanger(String exchanger) {
this.exchanger = exchanger;
}

/**
* 单词拼写错误,请使用{@link #getDispatcher()}
* @deprecated {@link #getDispatcher()}
*/
@Deprecated
public String getDispather() {
return dispather;
return getDispatcher();
}

/**
* 单词拼写错误,请使用{@link #setDispatcher(String)}
* @deprecated {@link #setDispatcher(String)}
*/
@Deprecated
public void setDispather(String dispather) {
setDispatcher(dispather);
}

public String getDispatcher() {
return dispatcher;
}

public void setDispatcher(String dispatcher) {
checkExtension(Dispatcher.class, Constants.DISPATCHER_KEY, exchanger);
checkExtension(Dispatcher.class, "dispather", exchanger);
this.dispather = dispather;
this.dispatcher = dispatcher;
}

public String getNetworker() {
Expand Down

0 comments on commit f1ef1e0

Please sign in to comment.