public class LifeCycleUpdaterLifecycleBean extends Object implements org.springframework.context.SmartLifecycle
Life-cycle bean that will set the life-cycle to LifeCycle.State.RUNNING on start and to LifeCycle.State.STOPPING on shutdown.
| Constructor and Description |
|---|
LifeCycleUpdaterLifecycleBean(DefaultLifeCycle lifeCycle) |
| Modifier and Type | Method and Description |
|---|---|
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public LifeCycleUpdaterLifecycleBean(DefaultLifeCycle lifeCycle)
public boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic void stop(Runnable callback)
stop in interface org.springframework.context.SmartLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic int getPhase()
getPhase in interface org.springframework.context.PhasedCopyright © 2010 - 2019 edorasware ag. All Rights Reserved.