- Hands-On Design Patterns with Java
- Dr. Edward Lavieri
- 89字
- 2021-06-24 14:58:04
Finance email handler
The FinanceEmailHandler class extends the MainEmailHandler class. It assigns the keywords specific to the finance email handler and contains the processEmailFinal() method:
public class FinanceEmailHandler extends MainEmailHandler {
protected String[] keyWords() {
// setup keywords for the receiver team
return new String[] {"financial", "student aid", "tuition"};
}
protected void processEmailFinal(String emailText) {
System.out.println("The Finance Team processed the email.");
}
@Override
public void setNextEmailHandler(UniversityEmailHandler emailHandler) {
}
}
The processEmailFinal() method just shown informs the user that the finance email handler took care of the received email.
推薦閱讀
- 數(shù)據(jù)挖掘原理與實(shí)踐
- 數(shù)據(jù)分析實(shí)戰(zhàn):基于EXCEL和SPSS系列工具的實(shí)踐
- 劍破冰山:Oracle開發(fā)藝術(shù)
- 企業(yè)大數(shù)據(jù)系統(tǒng)構(gòu)建實(shí)戰(zhàn):技術(shù)、架構(gòu)、實(shí)施與應(yīng)用
- 數(shù)據(jù)庫開發(fā)實(shí)踐案例
- Spark核心技術(shù)與高級應(yīng)用
- 深度剖析Hadoop HDFS
- Oracle PL/SQL實(shí)例精解(原書第5版)
- Apache Kylin權(quán)威指南
- R語言數(shù)據(jù)挖掘
- 新手學(xué)會計(jì)(2013-2014實(shí)戰(zhàn)升級版)
- SAS金融數(shù)據(jù)挖掘與建模:系統(tǒng)方法與案例解析
- 大數(shù)據(jù)與機(jī)器學(xué)習(xí):實(shí)踐方法與行業(yè)案例
- 企業(yè)大數(shù)據(jù)處理:Spark、Druid、Flume與Kafka應(yīng)用實(shí)踐
- 云工作時代:科技進(jìn)化必將帶來的新工作方式