- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 89字
- 2021-06-24 14:58:03
Academic email handler
The AcademicEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the academic email handler and contains the processEmailFinal() method:
public class AcademicEmailHandler extends MainEmailHandler {
protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"academic"};
}
protected void processEmailFinal(String emailText) {
System.out.println("The Academic Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method of the AcademicEmailHandler class shown informs the user that the academic email handler took care of the received email.
推薦閱讀
- 數據浪潮
- 數據產品經理高效學習手冊:產品設計、技術常識與機器學習
- 云計算環境下的信息資源集成與服務
- Python數據分析、挖掘與可視化從入門到精通
- Python數據分析:基于Plotly的動態可視化繪圖
- Power BI商業數據分析完全自學教程
- Oracle PL/SQL實例精解(原書第5版)
- MATLAB Graphics and Data Visualization Cookbook
- PostgreSQL指南:內幕探索
- 貫通SQL Server 2008數據庫系統開發
- Expert Python Programming(Third Edition)
- The Natural Language Processing Workshop
- SQL Server 2008寶典(第2版)
- 成功之路:ORACLE 11g學習筆記
- 數據可視化五部曲