Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Why ProviderConfig.setDispatcher() do exchanger check? #3518

@Bricks-Man

Description

@Bricks-Man
  • I have searched the issues of this repository and believe that this is not a duplicate.
  • I have checked the FAQ of this repository and believe that this is not a duplicate.

我在ProviderConfig.setDispatcher()里面发现了如下代码:
I found the following code in ProviderConfig.setDispatcher():

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

我不明白为什么需要在这里做这个检查。
I don't understand why this method needs to do this check here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugBugs to being fixed

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions