类 AbstractSmartLifecycle

  • 所有已实现的接口:
    org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle

    public abstract class AbstractSmartLifecycle
    extends java.lang.Object
    implements org.springframework.context.SmartLifecycle
    The abstract class for SmartLifecycle
    从以下版本开始:
    1.0.0
    作者:
    Mercy
    • 字段详细资料

      • EARLIEST_PHASE

        public static final int EARLIEST_PHASE
        The earliest phase
        另请参阅:
        常量字段值
      • LATEST_PHASE

        public static final int LATEST_PHASE
        The latest phase
        另请参阅:
        常量字段值
      • DEFAULT_PHASE

        public static final int DEFAULT_PHASE
        Compatible with SmartLifecycle.DEFAULT_PHASE before Spring Framework 5.1
        另请参阅:
        SmartLifecycle.DEFAULT_PHASE, 常量字段值
    • 构造器详细资料

      • AbstractSmartLifecycle

        public AbstractSmartLifecycle()
    • 方法详细资料

      • start

        public final void start()
        指定者:
        start 在接口中 org.springframework.context.Lifecycle
      • doStart

        protected abstract void doStart()
      • stop

        public final void stop()
        指定者:
        stop 在接口中 org.springframework.context.Lifecycle
      • doStop

        protected abstract void doStop()
      • isRunning

        public final boolean isRunning()
        指定者:
        isRunning 在接口中 org.springframework.context.Lifecycle
      • isAutoStartup

        public boolean isAutoStartup()
        指定者:
        isAutoStartup 在接口中 org.springframework.context.SmartLifecycle
      • stop

        public void stop​(java.lang.Runnable callback)
        指定者:
        stop 在接口中 org.springframework.context.SmartLifecycle
      • getPhase

        public final int getPhase()
        指定者:
        getPhase 在接口中 org.springframework.context.Phased
        指定者:
        getPhase 在接口中 org.springframework.context.SmartLifecycle
      • isStarted

        public boolean isStarted()
      • setPhase

        public final void setPhase​(int phase)
      • setStarted

        protected void setStarted​(boolean started)