template method
常见例句
- When the assertions fail, the methods throw AssertionFailedError, which TestResult catches and interprets in the result-handling fixture template method.
如果斷言失敗,那麽這些方法將拋出 AssertionFailedError,TestResult 在結果処理裝置模板方法中捕獲這些異常竝進行解釋。 - Using the template method for implementing the bridge role of the broker pattern provided a mechanism for adding alternative types of external communication in the future.
使用模板方法實現中介模式的橋接角色,這種做法提供了一種可以在將來添加外部通信備用類型的機制。 - The "bridge" role from the broker pattern was then implemented using the template method pattern to support remote service invocation using several different underlying communication technologies.
中介模式的“橋接”角色是使用模板方法模式實現的,它通過幾種不同的基礎通信技術,爲遠程服務調用提供支持。 返回 template method