org.axonframework.contextsupport.spring
Class SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager

java.lang.Object
  extended by 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).


Constructor Summary
SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager()
           
 
Method Summary
 int getPhase()
           
 boolean isAutoStartup()
           
 boolean isRunning()
           
 void setEventBus(EventBus eventBus)
          Sets the event bus to which the SagaManager should be subscribed
 void setSagaManager(SagaManager sagaManager)
          Sets the SagaManager instance to subscribe to the Event Bus
 void start()
           
 void stop()
           
 void stop(Runnable callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager

public SagaManagerBeanDefinitionParser.SagaManagerLifecycleManager()
Method Detail

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.