- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 87字
- 2021-06-24 14:58:03
Alumni email handler
The AlumnicEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the alumni email handler and contains the processEmailFinal() method:
public class AlumniEmailHandler extends MainEmailHandler {
protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"alumni", "transcript"};
}
protected void processEmailFinal(String emailText) {
System.out.println("The Alumni Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method just shown informs the user that the alumni email handler took care of the received email.
推薦閱讀
- 企業(yè)數(shù)字化創(chuàng)新引擎:企業(yè)級PaaS平臺HZERO
- InfluxDB原理與實戰(zhàn)
- 使用GitOps實現(xiàn)Kubernetes的持續(xù)部署:模式、流程及工具
- Redis應用實例
- 企業(yè)大數(shù)據系統(tǒng)構建實戰(zhàn):技術、架構、實施與應用
- 大數(shù)據導論
- 數(shù)據庫開發(fā)實踐案例
- Python金融實戰(zhàn)
- 數(shù)據庫原理與設計(第2版)
- 數(shù)據科學工程實踐:用戶行為分析與建模、A/B實驗、SQLFlow
- Python數(shù)據分析與數(shù)據化運營
- TextMate How-to
- Oracle高性能SQL引擎剖析:SQL優(yōu)化與調優(yōu)機制詳解
- Unity for Architectural Visualization
- SOLIDWORKS 2018中文版機械設計基礎與實例教程