Add Apache MINA SftpEventListener

- republish certain events as `ApplicationEvent`s.

* * Add ApacheMinaFtplet to provide the same functionality with FTP
* Fix typo

* * Polishing javadocs and event toString() methods
This commit is contained in:
Gary Russell
2019-07-30 10:31:23 -04:00
committed by Artem Bilan
parent b1dfb7bfa3
commit cd0f56bc87
31 changed files with 1477 additions and 15 deletions

View File

@@ -17,6 +17,7 @@
package org.springframework.integration.events;
import org.springframework.context.ApplicationEvent;
import org.springframework.lang.Nullable;
/**
@@ -32,14 +33,13 @@ import org.springframework.context.ApplicationEvent;
@SuppressWarnings("serial")
public abstract class IntegrationEvent extends ApplicationEvent {
private final Throwable cause;
protected final Throwable cause; // NOSONAR protected final
public IntegrationEvent(Object source) {
super(source);
this.cause = null;
this(source, null);
}
public IntegrationEvent(Object source, Throwable cause) {
public IntegrationEvent(Object source, @Nullable Throwable cause) {
super(source);
this.cause = cause;
}