- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 88字
- 2021-06-24 14:58:04
Advising email handler
The AdvisingEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the advising email handler and contains the processEmailFinal() method:
public class AdvisingEmailHandler extends MainEmailHandler {
protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"advising", "schedule", "course"};
}
protected void processEmailFinal(String emailText) {
System.out.println("The Advising Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method just shown informs the user that the advising email handler took care of the received email.
推薦閱讀
- LibGDX Game Development Essentials
- 大規模數據分析和建模:基于Spark與R
- 數據挖掘原理與實踐
- 數據結構與算法(C語言版)
- Neural Network Programming with TensorFlow
- 數亦有道:Python數據科學指南
- Microsoft Power BI數據可視化與數據分析
- MATLAB Graphics and Data Visualization Cookbook
- SQL Server 2012數據庫管理教程
- 大數據治理與安全:從理論到開源實踐
- TextMate How-to
- 探索新型智庫發展之路:藍迪國際智庫報告·2015(上冊)
- 跨領域信息交換方法與技術(第二版)
- 新手學會計(2013-2014實戰升級版)
- Unity 2018 By Example(Second Edition)