Class GreenMailServiceImpl

java.lang.Object
ch.tocco.nice2.messaging.greenmail.impl.GreenMailServiceImpl
All Implemented Interfaces:
GreenMailService, Runnable

@ConditionalOnProperty(value="ch.tocco.nice2.enableUpgradeMode", havingValue="false", matchIfMissing=true) public class GreenMailServiceImpl extends Object implements GreenMailService
  • Constructor Details

    • GreenMailServiceImpl

      public GreenMailServiceImpl(org.slf4j.Logger log, GreenMailSessionFactory sessionFactory)
  • Method Details

    • getGreenMail

      public Optional<com.icegreen.greenmail.util.GreenMail> getGreenMail()
      Specified by:
      getGreenMail in interface GreenMailService
    • getSmtpSetup

      public String getSmtpSetup()
    • setSmtpSetup

      @Value("${nice2.messaging.greenmail.smtpSetup}") public void setSmtpSetup(String smtpSetup)
    • getPop3Setup

      public String getPop3Setup()
    • setPop3Setup

      @Value("${nice2.messaging.greenmail.pop3Setup}") public void setPop3Setup(String pop3Setup)
    • getImapSetup

      public String getImapSetup()
    • setImapSetup

      @Value("${nice2.messaging.greenmail.imapSetup}") public void setImapSetup(String imapSetup)
    • setUsers

      @Autowired public void setUsers(List<UserContribution> users)
    • start

      public void start()
    • stop

      @PreDestroy public boolean stop()
    • run

      public void run()
      Specified by:
      run in interface Runnable