- 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.
推薦閱讀
- Hands-On Data Structures and Algorithms with Rust
- 算法競賽入門經典:習題與解答
- PySpark大數據分析與應用
- 云計算與大數據應用
- 數據化網站運營深度剖析
- MySQL 8.x從入門到精通(視頻教學版)
- 探索新型智庫發(fā)展之路:藍迪國際智庫報告·2015(下冊)
- 數據庫原理與應用
- Hadoop集群與安全
- 貫通SQL Server 2008數據庫系統(tǒng)開發(fā)
- 區(qū)塊鏈+:落地場景與應用實戰(zhàn)
- Deep Learning with R for Beginners
- 數據中心經營之道
- 企業(yè)級大數據項目實戰(zhàn):用戶搜索行為分析系統(tǒng)從0到1
- SQL進階教程(第2版)