public abstract class LifecycleObjectSupport extends java.lang.Object implements org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean, org.springframework.context.SmartLifecycle, org.springframework.beans.factory.BeanFactoryAware, StateMachineReactiveLifecycle
| Constructor and Description |
|---|
LifecycleObjectSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected void |
doDestroy()
Subclasses may implement this for destroy logic.
|
protected reactor.core.publisher.Mono<java.lang.Void> |
doPostStartReactively()
Subclasses may implement this for post start logic.
|
protected reactor.core.publisher.Mono<java.lang.Void> |
doPostStopReactively()
Subclasses may implement this for post stop logic.
|
protected reactor.core.publisher.Mono<java.lang.Void> |
doPreStartReactively()
Subclasses may implement this for pre start logic.
|
protected reactor.core.publisher.Mono<java.lang.Void> |
doPreStopReactively()
Subclasses may implement this for pre stop logic.
|
protected org.springframework.beans.factory.BeanFactory |
getBeanFactory()
Gets the
BeanFactory for this instance. |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
protected void |
onInit()
Subclasses may implement this for initialization logic.
|
void |
setAutoStartup(boolean autoStartup)
Sets the auto startup.
|
void |
setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory) |
void |
setPhase(int phase)
Sets the phase.
|
void |
start() |
reactor.core.publisher.Mono<java.lang.Void> |
startReactively()
Starts component reactively.
|
void |
stop() |
reactor.core.publisher.Mono<java.lang.Void> |
stopReactively()
Stops component reactively.
|
public final void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanpublic final void destroy()
throws java.lang.Exception
destroy in interface org.springframework.beans.factory.DisposableBeanjava.lang.Exceptionpublic void setBeanFactory(org.springframework.beans.factory.BeanFactory beanFactory)
throws org.springframework.beans.BeansException
setBeanFactory in interface org.springframework.beans.factory.BeanFactoryAwareorg.springframework.beans.BeansExceptionpublic final boolean isAutoStartup()
isAutoStartup in interface org.springframework.context.SmartLifecyclepublic final int getPhase()
getPhase in interface org.springframework.context.PhasedgetPhase in interface org.springframework.context.SmartLifecyclepublic void start()
start in interface org.springframework.context.Lifecyclepublic void stop()
stop in interface org.springframework.context.Lifecyclepublic reactor.core.publisher.Mono<java.lang.Void> startReactively()
StateMachineReactiveLifecyclestartReactively in interface StateMachineReactiveLifecyclepublic reactor.core.publisher.Mono<java.lang.Void> stopReactively()
StateMachineReactiveLifecyclestopReactively in interface StateMachineReactiveLifecyclepublic boolean isRunning()
isRunning in interface org.springframework.context.Lifecyclepublic void setAutoStartup(boolean autoStartup)
autoStartup - the new auto startupSmartLifecyclepublic void setPhase(int phase)
phase - the new phaseSmartLifecycleprotected final org.springframework.beans.factory.BeanFactory getBeanFactory()
BeanFactory for this instance.protected void onInit()
throws java.lang.Exception
InitializingBean phase.java.lang.Exception - exceptionprotected void doDestroy()
protected reactor.core.publisher.Mono<java.lang.Void> doPreStartReactively()
protected reactor.core.publisher.Mono<java.lang.Void> doPreStopReactively()
protected reactor.core.publisher.Mono<java.lang.Void> doPostStartReactively()
protected reactor.core.publisher.Mono<java.lang.Void> doPostStopReactively()