All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.networknt.eventuate.test.domain.MoneyTransfer Maven / Gradle / Ivy

There is a newer version: 1.5.1
Show newest version
package com.networknt.eventuate.test.domain;


import com.networknt.eventuate.common.Event;
import com.networknt.eventuate.common.EventUtil;
import com.networknt.eventuate.common.ReflectiveMutableCommandProcessingAggregate;

import java.util.List;

public class MoneyTransfer extends ReflectiveMutableCommandProcessingAggregate {

  public List process(CreateMoneyTransferCommand cmd) {
    return EventUtil.events(new MoneyTransferCreatedEvent(cmd.getDetails()));
  }

  public void apply(AccountCreatedEvent event) {
    // TODO - do something
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy