Example usage for org.springframework.integration.mail MailTransportUtils closeService

List of usage examples for org.springframework.integration.mail MailTransportUtils closeService

Introduction

In this page you can find the example usage for org.springframework.integration.mail MailTransportUtils closeService.

Prototype

public static void closeService(Service service) 

Source Link

Document

Close the given JavaMail Service and ignore any thrown exception.

Usage

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
}