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.SmartLifecycle
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
Copyright © 2010 - 2019 edorasware ag. All Rights Reserved.