本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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());
}
示例5: on
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
protected void on(OrderCreatedEvent cfe) {
this.id = cfe.getId();
}
示例6: onEvent
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void onEvent(final SomeEvent event) {
someId = event.getSomeId();
}
示例7: onEvent
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void onEvent(final TestAggregateCreated event) {
this.aggregateId = event.getAggregateId();
}
示例8: applyDebit
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void applyDebit(AccountDebitedEvent event) {
this.balance -= event.getAmmountDebited();
}
示例9: applyCredit
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void applyCredit(AccountCreditedEvent event) {
this.balance += event.getAmountCredited();
}
示例10: applyAccountCreation
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void applyAccountCreation(AccountCreatedEvent event) {
this.id = event.getId();
this.balance = 0.0d;
}
示例11: on
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
public void on(ProductSaleableEvent event) {
this.isSaleable = true;
LOG.debug("Applied: 'ProductSaleableEvent' [{}]", event.getId());
}
示例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));
}
示例13: handleItemHasBeenMarkedAsPicked
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleItemHasBeenMarkedAsPicked(ItemHasBeenMarkedAsPicked event) {
toPickSKUs.remove(event.getSku());
}
示例14: handleDeliveryDateHasBeenChosen
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleDeliveryDateHasBeenChosen(DeliveryDateHasBeenChosen event) {
hasDeliveryDate = true;
}
示例15: handleStoreAssistantHasBeenEmployed
import org.axonframework.eventsourcing.annotation.EventSourcingHandler; //导入依赖的package包/类
@EventSourcingHandler
private void handleStoreAssistantHasBeenEmployed(StoreAssistantHasBeenEmployed event) {
this.id = event.getStoreAssistantId();
}