Class RefreshScopeLifecycle

java.lang.Object
org.springframework.cloud.context.refresh.RefreshScopeLifecycle
All Implemented Interfaces:
org.springframework.context.Lifecycle

public class RefreshScopeLifecycle extends Object implements org.springframework.context.Lifecycle
A Lifecycle implementation that triggers ContextRefresher.refresh() to be called on restart.
Since:
4.1.0
Author:
Olga Maciaszek-Sharma
  • Constructor Details

    • RefreshScopeLifecycle

      public RefreshScopeLifecycle(ContextRefresher contextRefresher)
  • Method Details

    • start

      public void start()
      Specified by:
      start in interface org.springframework.context.Lifecycle
    • stop

      public void stop()
      Specified by:
      stop in interface org.springframework.context.Lifecycle
    • isRunning

      public boolean isRunning()
      Specified by:
      isRunning in interface org.springframework.context.Lifecycle