- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 97字
- 2021-06-24 14:58:04
HR email handler
The HREmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the HR email handler and contains the processEmailFinal() method:
public class HREmailHandler extends MainEmailHandler {
protected String[] assignedKeyWords() {
// setup keywords for the receiver team
return new String[]{"career", "job", "faculty"};
}
@Override
protected String[] keyWords() {
return new String[0];
}
protected void processEmailFinal(String emailText) {
System.out.println("The Human Resources Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method just shown informs the user that the HR email handler took care of the received email.
推薦閱讀
- PyTorch深度學(xué)習(xí)實戰(zhàn):從新手小白到數(shù)據(jù)科學(xué)家
- 有趣的二進(jìn)制:軟件安全與逆向分析
- ETL數(shù)據(jù)整合與處理(Kettle)
- Python數(shù)據(jù)分析、挖掘與可視化從入門到精通
- SQL查詢:從入門到實踐(第4版)
- Python數(shù)據(jù)分析:基于Plotly的動態(tài)可視化繪圖
- 數(shù)據(jù)革命:大數(shù)據(jù)價值實現(xiàn)方法、技術(shù)與案例
- 企業(yè)級數(shù)據(jù)與AI項目成功之道
- 計算機(jī)應(yīng)用基礎(chǔ)教程上機(jī)指導(dǎo)與習(xí)題集(微課版)
- Hadoop大數(shù)據(jù)開發(fā)案例教程與項目實戰(zhàn)(在線實驗+在線自測)
- Chef Essentials
- Mastering LOB Development for Silverlight 5:A Case Study in Action
- 深入理解InfluxDB:時序數(shù)據(jù)庫詳解與實踐
- Web Services Testing with soapUI
- 利用Python進(jìn)行數(shù)據(jù)分析(原書第2版)