As a simple example, let us create a generic function called whoami and some tagged methods to dispatch to.
作为一个简单的例子,我们来创建一个称为whoami的泛型函数以及一些要被分派标记的方法。
This action ensures dispatch to a special servlet that verifies the user credentials that were collected by the form.
该操作确保可以调度一个特定的servlet,用这个servlet来核实从表单中收集到的用户信息。
If multiple SOAPInput nodes are associated with the same endpoint, then the broker can't tell which node to dispatch to.
如果多个SOAPInput节点与同一端点关联,则代理无法知道要分派给哪一个节点。
The goal here is largely to enable meaningful code reuse: Each path component causes dispatch to a relevant code handler.
这样做的主要目的是支持有意义的代码重用:每个路径成分委派给一个相关的代码处理器。
This means that in the previous example, you would not have to redeploy the business process to modify the components you want to dispatch to through the selector.
这意味着,在前一个示例中,您不必重新部署业务流程,以修改您希望通过选择器分派的组件。
One paper circulating in Brussels and Washington, dc, suggests that Gaza-bound cargo could dock in Cyprus or Crete for inspection, before onward dispatch to Gaza in sealed containers.
一份在布鲁塞尔和华盛顿特区之间传递的文件,建议运往加沙的货物可以先停靠在塞浦路斯和克里特岛接受检查,然后装入密封的集装箱遣往加沙。
One paper circulating in Brussels and Washington, DC, suggests that Gaza-bound cargo could dock in Cyprus or Crete for inspection, before onward dispatch to Gaza in sealed containers.
在布鲁塞尔和华盛顿之间流传的一份文件,提议前往加沙的货物可以在塞浦路斯或者克里特岛停靠以便查验,然后用密封的集装箱运往加沙。
We can use a pattern called Double Dispatch to pull out the variation into the subclasses in such a way that we don't break existing interface contracts.
我们可以使用称为双重分发的模式将变化推入子类中,通过这种方式,我们不需要破坏现有的接口定义。
We can use a pattern called Double Dispatch to pull out the variation into the subclasses in such a way that we don't break existing interface contracts.
我们可以使用称为双重分发的模式将变化推入子类中,通过这种方式,我们不需要破坏现有的接口定义。
应用推荐