- 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.
推薦閱讀
- GitHub Essentials
- 揭秘云計算與大數(shù)據(jù)
- 商業(yè)分析思維與實踐:用數(shù)據(jù)分析解決商業(yè)問題
- Python醫(yī)學數(shù)據(jù)分析入門
- Remote Usability Testing
- 基于OPAC日志的高校圖書館用戶信息需求與檢索行為研究
- Oracle PL/SQL實例精解(原書第5版)
- 大數(shù)據(jù)精準挖掘
- 大數(shù)據(jù)技術(shù)原理與應(yīng)用:概念、存儲、處理、分析與應(yīng)用
- 算力經(jīng)濟:從超級計算到云計算
- 企業(yè)大數(shù)據(jù)處理:Spark、Druid、Flume與Kafka應(yīng)用實踐
- Scratch 2.0 Game Development HOTSHOT
- 標簽類目體系:面向業(yè)務(wù)的數(shù)據(jù)資產(chǎn)設(shè)計方法論
- ECharts數(shù)據(jù)可視化:入門、實戰(zhàn)與進階
- 推薦系統(tǒng)全鏈路設(shè)計:原理解讀與業(yè)務(wù)實踐