- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 89字
- 2021-06-24 14:58:04
Finance email handler
The FinanceEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the finance email handler and contains the processEmailFinal() method:
public class FinanceEmailHandler extends MainEmailHandler {
protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"financial", "student aid", "tuition"};
}
protected void processEmailFinal(String emailText) {
System.out.println("The Finance Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method just shown informs the user that the finance email handler took care of the received email.
推薦閱讀
- 數據庫基礎教程(SQL Server平臺)
- Visual Studio 2015 Cookbook(Second Edition)
- 揭秘云計算與大數據
- Oracle高性能自動化運維
- 數亦有道:Python數據科學指南
- 網站數據庫技術
- Proxmox VE超融合集群實踐真傳
- SQL應用及誤區分析
- 探索新型智庫發展之路:藍迪國際智庫報告·2015(上冊)
- 跨領域信息交換方法與技術(第二版)
- 大數據技術原理與應用:概念、存儲、處理、分析與應用
- 企業大數據處理:Spark、Druid、Flume與Kafka應用實踐
- Scratch 2.0 Game Development HOTSHOT
- AndEngine for Android Game Development Cookbook
- 掌中寶:電腦綜合應用技巧