List of usage examples for org.springframework.integration.mail MailTransportUtils closeService
public static void closeService(Service service)
From source file:org.springframework.integration.mail.AbstractMailReceiver.java
public void destroy() throws Exception { synchronized (this.folderMonitor) { MailTransportUtils.closeFolder(this.folder, this.shouldDeleteMessages); MailTransportUtils.closeService(this.store); this.folder = null; this.store = null; this.initialized = false; }// w w w. ja v a2s . com }