GH-1352: Spring Integration 5.3 Compatibility

This commit is contained in:
Gary Russell
2021-06-23 12:53:16 -04:00
parent 3d72e07243
commit 086822cf46

View File

@@ -17,6 +17,7 @@
package org.springframework.amqp.rabbit.listener;
import org.springframework.amqp.core.MessageListener;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.context.SmartLifecycle;
import org.springframework.lang.Nullable;
@@ -28,7 +29,7 @@ import org.springframework.lang.Nullable;
* @author Gary Russell
* @since 1.4
*/
public interface MessageListenerContainer extends SmartLifecycle {
public interface MessageListenerContainer extends SmartLifecycle, InitializingBean {
/**
* Setup the message listener to use. Throws an {@link IllegalArgumentException}
@@ -87,4 +88,8 @@ public interface MessageListenerContainer extends SmartLifecycle {
*/
void setListenerId(String id);
@Override
default void afterPropertiesSet() throws Exception { // NOSONAR
}
}