org.axonframework.quickstart.saga
Class ToDoSaga

java.lang.Object
  extended by org.axonframework.saga.annotation.AbstractAnnotatedSaga
      extended by org.axonframework.quickstart.saga.ToDoSaga
All Implemented Interfaces:
Serializable, Saga

public class ToDoSaga
extends AbstractAnnotatedSaga

Author:
Allard Buijze
See Also:
Serialized Form

Constructor Summary
ToDoSaga()
           
 
Method Summary
 void onDeadlineExpired(ToDoItemDeadlineExpiredEvent event)
           
 void onToDoItemCompleted(ToDoItemCompletedEvent event)
           
 void onToDoItemCreated(ToDoItemCreatedEvent event)
           
 void setCommandGateway(CommandGateway commandGateway)
           
 void setEventScheduler(EventScheduler eventScheduler)
           
 
Methods inherited from class org.axonframework.saga.annotation.AbstractAnnotatedSaga
associateWith, associateWith, associateWith, end, getAssociationValues, getSagaIdentifier, handle, isActive, registerParameterResolverFactory, removeAssociationWith, removeAssociationWith, removeAssociationWith
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToDoSaga

public ToDoSaga()
Method Detail

onToDoItemCreated

@StartSaga
@SagaEventHandler(associationProperty="todoId")
public void onToDoItemCreated(ToDoItemCreatedEvent event)

onDeadlineExpired

@SagaEventHandler(associationProperty="todoId")
public void onDeadlineExpired(ToDoItemDeadlineExpiredEvent event)

onToDoItemCompleted

@EndSaga
@SagaEventHandler(associationProperty="todoId")
public void onToDoItemCompleted(ToDoItemCompletedEvent event)

setCommandGateway

public void setCommandGateway(CommandGateway commandGateway)

setEventScheduler

public void setEventScheduler(EventScheduler eventScheduler)


Copyright © 2010-2016. All Rights Reserved.