本文整理汇总了Java中org.axonframework.eventsourcing.EventSourcingHandler类的典型用法代码示例。如果您正苦于以下问题:Java EventSourcingHandler类的具体用法?Java EventSourcingHandler怎么用?Java EventSourcingHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EventSourcingHandler类属于org.axonframework.eventsourcing包,在下文中一共展示了EventSourcingHandler类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(OrgCreateEvent event) {
this.id = event.getId();
this.parentId = event.getParentId();
this.code = event.getCode();
this.name = event.getName();
this.orderNum = event.getOrderNum();
this.enable = event.getEnable();
this.open = event.getOpen();
}
示例2: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(UserCreateEvent event) {
this.id = event.getId();
this.username = event.getUsername();
this.password = event.getPassword();
this.phone = event.getPhone();
this.email = event.getEmail();
this.enable = event.getEnable();
}
示例3: handleEvent
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void handleEvent(CreateAggregate event) {
id = event.getTarget();
}
开发者ID:flux-capacitor-io,项目名称:flux-capacitor-client,代码行数:5,代码来源:FluxCapacitorSpringConfigurationTest.java
示例4: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(BankAccountCreatedEvent event) {
this.id = event.getId();
this.overdraftLimit = event.getOverdraftLimit();
this.balanceInCents = 0;
}
示例5: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(TaskCreatedEvent taskCreatedEvent) {
this.taskId = taskCreatedEvent.getTaskId();
}
示例6: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ToDoItemCreatedEvent event) {
System.out.println(">> Receiving aggregate event: " + event);
this.id = event.getTodoId();
}
示例7: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ToDoItemCreatedEvent event) {
this.id = event.getTodoId();
}
示例8: on
import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(PreparationCreatedEvent dce) {
this.id = dce.getId();
}