예제 #1
0
 @Override
 public void notify(Notification notification) {
   mailAbstraction.send(
       properties,
       notification.getSubject(),
       notification.getMessage(),
       notification.getRecipient());
 }
예제 #2
0
 @Override
 public AliveState getAliveState() {
   AliveState aliveState = mailAbstraction.getAliveState();
   if (aliveState == null) {
     return AliveState.OFFLINE;
   }
   return aliveState;
 }
예제 #3
0
 public EmailNotifier(String id, MailAbstraction mailAbstraction) {
   this.id = id;
   this.mailAbstraction = mailAbstraction;
   properties = mailAbstraction.createMailProperties();
 }