类 AbstractSmartLifecycle
- java.lang.Object
-
- io.microsphere.spring.context.lifecycle.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.SmartLifecycleThe abstract class forSmartLifecycle- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
字段概要
字段 修饰符和类型 字段 说明 static intDEFAULT_PHASECompatible withSmartLifecycle.DEFAULT_PHASEbefore Spring Framework 5.1static intEARLIEST_PHASEThe earliest phasestatic intLATEST_PHASEThe latest phase
-
构造器概要
构造器 构造器 说明 AbstractSmartLifecycle()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract voiddoStart()protected abstract voiddoStop()intgetPhase()booleanisAutoStartup()booleanisRunning()booleanisStarted()voidsetPhase(int phase)protected voidsetStarted(boolean started)voidstart()voidstop()voidstop(java.lang.Runnable callback)
-
-
-
字段详细资料
-
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 withSmartLifecycle.DEFAULT_PHASEbefore Spring Framework 5.1- 另请参阅:
SmartLifecycle.DEFAULT_PHASE, 常量字段值
-
-
方法详细资料
-
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)
-
-