类 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.SmartLifecycle
The abstract class forSmartLifecycle
- 从以下版本开始:
- 1.0.0
- 作者:
- Mercy
-
-
字段概要
字段 修饰符和类型 字段 说明 static int
DEFAULT_PHASE
Compatible withSmartLifecycle.DEFAULT_PHASE
before Spring Framework 5.1static int
EARLIEST_PHASE
The earliest phasestatic int
LATEST_PHASE
The latest phase
-
构造器概要
构造器 构造器 说明 AbstractSmartLifecycle()
-
方法概要
所有方法 实例方法 抽象方法 具体方法 修饰符和类型 方法 说明 protected abstract void
doStart()
protected abstract void
doStop()
int
getPhase()
boolean
isAutoStartup()
boolean
isRunning()
boolean
isStarted()
void
setPhase(int phase)
protected void
setStarted(boolean started)
void
start()
void
stop()
void
stop(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_PHASE
before 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)
-
-