Package ome.services.mail
Class ServerUpMailSender
- java.lang.Object
-
- ome.tools.spring.OnContextRefreshedEventListener
-
- ome.services.mail.ServerUpMailSender
-
- All Implemented Interfaces:
java.util.EventListener
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class ServerUpMailSender extends OnContextRefreshedEventListener
Announces to all members of the system group that the server has come up.
-
-
Field Summary
Fields Modifier and Type Field Description protected MailSender
sender
-
Constructor Summary
Constructors Constructor Description ServerUpMailSender(MailSender sender)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
-
Methods inherited from class ome.tools.spring.OnContextRefreshedEventListener
onApplicationEvent, setApplicationContext
-
-
-
-
Field Detail
-
sender
protected MailSender sender
-
-
Constructor Detail
-
ServerUpMailSender
public ServerUpMailSender(MailSender sender)
-
-
Method Detail
-
handleContextRefreshedEvent
public void handleContextRefreshedEvent(org.springframework.context.event.ContextRefreshedEvent event)
- Specified by:
handleContextRefreshedEvent
in classOnContextRefreshedEventListener
-
-