Affects: \<5.2.6.RELEASE>
If a Bean has the @RereshScope annotation and implements the SmartLife interface, the SmartLife interface lifecycle method will not be invoked after the Spring container is started
Bean: @Slf4j @Component @RefreshScope public class NectorInvoker implements SmartLifecycle
start method: @Override public void start() { if (this.running.compareAndSet(false, true)) { nectorClient.start(); } }
As mentioned above, the start method will not be called
Comment From: sdeleuze
@RefreshScope
is not directly supported at Spring Framework level and it modifies some core concept that could imply this kind of side effect, so nothing we could do about it. Maybe to be raised on Spring Cloud side.
Comment From: flangely
@RefreshScope
is not directly supported at Spring Framework level and it modifies some core concept that could imply this kind of side effect, so nothing we could do about it. Maybe to be raised on Spring Cloud side.
ok, thank you