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


Java EventSourcingHandler类代码示例

本文整理汇总了Java中org.axonframework.eventsourcing.annotation.EventSourcingHandler的典型用法代码示例。如果您正苦于以下问题:Java EventSourcingHandler类的具体用法?Java EventSourcingHandler怎么用?Java EventSourcingHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


EventSourcingHandler类属于org.axonframework.eventsourcing.annotation包,在下文中一共展示了EventSourcingHandler类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: on

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ServiceSpecificationCreated event) {
    this.serviceSpecificationId = event.getServiceSpecificationId();
    this.organizationId = event.getOwnerId();
    this.serviceType = event.getServiceType();
    this.name = event.getName();
    this.summary = event.getSummary();
}
 
开发者ID:dma-graveyard,项目名称:MaritimeCloudPortalTestbed,代码行数:9,代码来源:ServiceSpecification.java

示例2: on

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ServiceInstanceCreated event) {
    this.serviceInstanceId = event.getServiceInstanceId();
    this.providerId = event.getProviderId();
    this.specificationId = event.getSpecificationId();
    this.name = event.getName();
    this.summary = event.getSummary();
    this.coverage = event.getCoverage();
}
 
开发者ID:dma-graveyard,项目名称:MaritimeCloudPortalTestbed,代码行数:10,代码来源:ServiceInstance.java

示例3: on

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(UserInvitedToOrganization event) {
    this.acceptedByOrganization = true;
    this.membershipId = new MembershipId(event.getMembershipId());
    this.organizationId = event.getOrganizationId();
    this.username = event.getUsername();
}
 
开发者ID:dma-graveyard,项目名称:MaritimeCloudPortalTestbed,代码行数:8,代码来源:Membership.java

示例4: on

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(UserRegistered event) {
    this.userId = event.getUserId();
    this.setUsername(event.getPrefferedUsername());
    this.unconfirmedEmailAddress = new UnconfirmedEmailAddress(event.getEmailAddress(), event.getEmailVerificationCode());
    this.setPassword(event.getObfuscatedPassword());
}
 
开发者ID:dma-graveyard,项目名称:MaritimeCloudPortalTestbed,代码行数:8,代码来源:User.java

示例5: on

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
protected void on(OrderCreatedEvent cfe) {
  this.id = cfe.getId();
}
 
开发者ID:drm317,项目名称:cloud-native-reference,代码行数:5,代码来源:OrderAggregate.java

示例6: onEvent

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void onEvent(final SomeEvent event) {
   someId = event.getSomeId();
}
 
开发者ID:Herumgeisterer,项目名称:visualaxon,代码行数:5,代码来源:SomeAggregate.java

示例7: onEvent

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void onEvent(final TestAggregateCreated event) {
   this.aggregateId = event.getAggregateId();
}
 
开发者ID:Qyotta,项目名称:axon-eventstore,代码行数:5,代码来源:MyTestAggregate.java

示例8: applyDebit

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void applyDebit(AccountDebitedEvent event) {
  this.balance -= event.getAmmountDebited();
}
 
开发者ID:arturgaleno,项目名称:cqrs-tutorial,代码行数:5,代码来源:Account.java

示例9: applyCredit

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void applyCredit(AccountCreditedEvent event) {
 this.balance += event.getAmountCredited();
}
 
开发者ID:arturgaleno,项目名称:cqrs-tutorial,代码行数:5,代码来源:Account.java

示例10: applyAccountCreation

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void applyAccountCreation(AccountCreatedEvent event) {
  this.id = event.getId();
  this.balance = 0.0d;
}
 
开发者ID:arturgaleno,项目名称:cqrs-tutorial,代码行数:6,代码来源:Account.java

示例11: on

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ProductSaleableEvent event) {
    this.isSaleable = true;
    LOG.debug("Applied: 'ProductSaleableEvent' [{}]", event.getId());
}
 
开发者ID:benwilcock,项目名称:cf-cqrs-microservice-sampler,代码行数:6,代码来源:ProductAggregate.java

示例12: handleOrderHasBeenPlaced

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleOrderHasBeenPlaced(OrderHasBeenPlaced event) {
    id = event.getOrderId();

    event.getProducts().forEach((k, v) -> toPickSKUs.add(k));
}
 
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:7,代码来源:Order.java

示例13: handleItemHasBeenMarkedAsPicked

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleItemHasBeenMarkedAsPicked(ItemHasBeenMarkedAsPicked event) {
    toPickSKUs.remove(event.getSku());
}
 
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:5,代码来源:Order.java

示例14: handleDeliveryDateHasBeenChosen

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleDeliveryDateHasBeenChosen(DeliveryDateHasBeenChosen event) {
    hasDeliveryDate = true;
}
 
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:5,代码来源:Order.java

示例15: handleStoreAssistantHasBeenEmployed

import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleStoreAssistantHasBeenEmployed(StoreAssistantHasBeenEmployed event) {
    this.id = event.getStoreAssistantId();
}
 
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:5,代码来源:StoreAssistant.java


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