- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 89字
- 2021-06-24 14:58:02
Use case
To demonstrate the chain of responsibility design pattern, we will use the university email scenario briefly mentioned in the previous section. For our example, we design a system that takes incoming emails and searches for specific keywords to help determine which university team the email should be routed to. Specifically, we will account for the following:

As you can see from the table, we identified handler classes to be implemented in Java. Having individual handlers for each type of email request will improve our application's efficiency.
推薦閱讀
- 數據庫基礎教程(SQL Server平臺)
- Python數據分析與挖掘實戰
- Word 2010中文版完全自學手冊
- Unity 5.x Game AI Programming Cookbook
- Game Development with Swift
- MongoDB管理與開發精要
- Visual Studio 2015 Cookbook(Second Edition)
- 數據驅動:從方法到實踐
- Spark大數據分析實戰
- Starling Game Development Essentials
- 大數據架構商業之路:從業務需求到技術方案
- 企業級容器云架構開發指南
- Augmented Reality using Appcelerator Titanium Starter
- Python數據分析從小白到專家
- 數據庫原理及應用:SQL Server 2016