File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
main/java/org/springframework/amqp/rabbit/listener
test/java/org/springframework/amqp/rabbit/config Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,7 @@ protected void checkMessageListener(Object listener) {
457457 /**
458458 * @return The message listener object to register.
459459 */
460+ @ Override
460461 public Object getMessageListener () {
461462 return this .messageListener ;
462463 }
@@ -557,6 +558,7 @@ public boolean removeAfterReceivePostProcessor(MessagePostProcessor afterReceive
557558 *
558559 * @param autoStartup true for auto startup.
559560 */
561+ @ Override
560562 public void setAutoStartup (boolean autoStartup ) {
561563 this .autoStartup = autoStartup ;
562564 }
Original file line number Diff line number Diff line change 11/*
2- * Copyright 2002-2019 the original author or authors.
2+ * Copyright 2002-2021 the original author or authors.
33 *
44 * Licensed under the Apache License, Version 2.0 (the "License");
55 * you may not use this file except in compliance with the License.
2121import org .springframework .amqp .rabbit .listener .RabbitListenerEndpoint ;
2222import org .springframework .beans .factory .DisposableBean ;
2323import org .springframework .beans .factory .InitializingBean ;
24+ import org .springframework .lang .Nullable ;
2425
2526/**
2627 * @author Stephane Nicoll
@@ -47,6 +48,16 @@ public RabbitListenerEndpoint getEndpoint() {
4748 return endpoint ;
4849 }
4950
51+ @ Override
52+ public void setAutoStartup (boolean autoStart ) {
53+ }
54+
55+ @ Override
56+ @ Nullable
57+ public Object getMessageListener () {
58+ return null ;
59+ }
60+
5061 public boolean isStarted () {
5162 return startInvoked && initializationInvoked ;
5263 }
You can’t perform that action at this time.
0 commit comments