当前位置: 首页>>代码示例>>Java>>正文


Java EventSourcingHandler类代码示例

本文整理汇总了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();
}
 
开发者ID:weechang,项目名称:Taroco,代码行数:11,代码来源:Org.java

示例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();
}
 
开发者ID:weechang,项目名称:Taroco,代码行数:10,代码来源:User.java

示例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;
}
 
开发者ID:AxonFramework,项目名称:AxonBank,代码行数:7,代码来源:BankAccount.java

示例5: on

import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(TaskCreatedEvent taskCreatedEvent) {
  this.taskId = taskCreatedEvent.getTaskId();
}
 
开发者ID:holisticon,项目名称:camunda-bpm-cloud,代码行数:5,代码来源:TaskAggregate.java

示例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();
}
 
开发者ID:kamaladafrica,项目名称:axon-cdi-quickstart,代码行数:6,代码来源:ToDoItem.java

示例7: on

import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ToDoItemCreatedEvent event) {
	this.id = event.getTodoId();
}
 
开发者ID:kamaladafrica,项目名称:axon-cdi-quickstart,代码行数:5,代码来源:QualifiedToDoItem.java

示例8: on

import org.axonframework.eventsourcing.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(PreparationCreatedEvent dce) {
    this.id = dce.getId();
}
 
开发者ID:Talend,项目名称:daikon,代码行数:5,代码来源:Preparation.java


注:本文中的org.axonframework.eventsourcing.EventSourcingHandler类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。