org.axonframework.contextsupport.spring
Class SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager
java.lang.Object
org.axonframework.contextsupport.spring.SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager
- All Implemented Interfaces:
- org.springframework.context.Lifecycle, org.springframework.context.Phased, org.springframework.context.SmartLifecycle
- Enclosing class:
- SagaManagerBeanDefinitionParser
public static class SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager
- extends Object
- implements org.springframework.context.SmartLifecycle
Manages the subscription of a SagaManager with an Event Bus. This is done in an external class to allow a
SagaManager to be proxied (e.g. for security access control).
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager
public SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager()
start
public void start()
- Specified by:
start
in interface org.springframework.context.Lifecycle
stop
public void stop()
- Specified by:
stop
in interface org.springframework.context.Lifecycle
isRunning
public boolean isRunning()
- Specified by:
isRunning
in interface org.springframework.context.Lifecycle
setEventBus
public void setEventBus(EventBus eventBus)
- Sets the event bus to which the SagaManager should be subscribed
- Parameters:
eventBus
- the event bus to which the SagaManager should be subscribed
setSagaManager
public void setSagaManager(SagaManager sagaManager)
- Sets the SagaManager instance to subscribe to the Event Bus
- Parameters:
sagaManager
- the SagaManager instance to subscribe to the Event Bus
isAutoStartup
public boolean isAutoStartup()
- Specified by:
isAutoStartup
in interface org.springframework.context.SmartLifecycle
stop
public void stop(Runnable callback)
- Specified by:
stop
in interface org.springframework.context.SmartLifecycle
getPhase
public int getPhase()
- Specified by:
getPhase
in interface org.springframework.context.Phased
Copyright © 2010-2016. All Rights Reserved.