GH-1352: Spring Integration 5.3 Compatibility
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user