Class AbstractSmartLifecycle

java.lang.Object
org.springframework.data.gemfire.config.support.AbstractSmartLifecycle
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
Direct Known Subclasses:
ClusterConfigurationConfiguration.ClusterSchemaObjectInitializer

public abstract class AbstractSmartLifecycle extends Object implements org.springframework.context.ApplicationContextAware, org.springframework.context.SmartLifecycle
AbstractSmartLifecycle is an abstract base class implementing the SpringSmartLifecycle interface to support custom implementations.
Since:
2.0.2
See Also:
  • SmartLifecycle
  • Field Details

  • Constructor Details

    • AbstractSmartLifecycle

      public AbstractSmartLifecycle()
  • Method Details

    • isAutoStartup

      public boolean isAutoStartup()
      Specified by:
      isAutoStartup in interface org.springframework.context.SmartLifecycle
    • isRunning

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

      protected void setRunning(boolean running)
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException
    • getApplicationContext

      protected Optional<org.springframework.context.ApplicationContext> getApplicationContext()
    • requireApplicationContext

      protected org.springframework.context.ApplicationContext requireApplicationContext()
    • getPhase

      public int getPhase()
      Specified by:
      getPhase in interface org.springframework.context.Phased
      Specified by:
      getPhase in interface org.springframework.context.SmartLifecycle
    • 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
    • stop

      public void stop(Runnable callback)
      Specified by:
      stop in interface org.springframework.context.SmartLifecycle