本文整理汇总了Java中org.axonframework.eventsourcing.annotation.EventSourcingHandler类的典型用法代码示例。如果您正苦于以下问题:Java EventSourcingHandler类的具体用法?Java EventSourcingHandler怎么用?Java EventSourcingHandler使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
EventSourcingHandler类属于org.axonframework.eventsourcing.annotation包,在下文中一共展示了EventSourcingHandler类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: handleDayOfChoiceScheduled
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleDayOfChoiceScheduled(DeliveryDayScheduled event) {
this.id = event.getId();
this.capacity = event.getCapacity();
}
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:6,代码来源:DeliveryDay.java
示例17: handleDeliverySlotConfirmed
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleDeliverySlotConfirmed(DeliverySlotConfirmed event) {
this.reservations.remove(event.getOrderId());
this.confirmations.add(event.getOrderId());
}
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:6,代码来源:DeliveryDay.java
示例18: handleDeliverySlotReserved
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleDeliverySlotReserved(DeliverySlotReserved event) {
this.capacity = this.capacity.decrement();
this.reservations.add(event.getOrderId());
}
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:6,代码来源:DeliveryDay.java
示例19: handleDeliverySlotRetracted
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleDeliverySlotRetracted(DeliverySlotRetracted event) {
this.capacity = this.capacity.increment();
this.reservations.add(event.getOrderId());
}
开发者ID:psamatt,项目名称:OrderFulfilmentCQRSDemo,代码行数:6,代码来源:DeliveryDay.java
示例20: on
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
void on(NewLibraryRegisteredEvent event) {
this.id = event.getLibraryId();
}
开发者ID:yizhuan,项目名称:library-saga,代码行数:5,代码来源:Library.java
注:本文中的org.axonframework.eventsourcing.annotation.EventSourcingHandler类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论