@Override public OrderPaymentStatus getStatus() { ApplicationContext ctx = ApplicationContextHolder.getApplicationContext(); if (ctx == null) { return null; } OrderPaymentStatusService svc = ctx.getBean("blOrderPaymentStatusService", OrderPaymentStatusService.class); return svc.determineOrderPaymentStatus(this); }
@Override public void afterCompletion(int status) { if (status == TransactionSynchronization.STATUS_COMMITTED) { ApplicationContextHolder.getApplicationContext().publishEvent(new OrderPersistedEvent((Order) entity)); } } });
@Override public void afterCommit() { ApplicationContextHolder.getApplicationContext().publishEvent(new CustomerPersistedEvent((Customer) entity)); } });
@Override public void afterCommit() { ApplicationContextHolder.getApplicationContext().publishEvent(new CustomerPersistedEvent(((CustomerAddress) entity).getCustomer())); } });
@Override public void afterCommit() { ApplicationContextHolder.getApplicationContext().publishEvent(new CustomerPersistedEvent(((CustomerPayment) entity).getCustomer())); } });
@Override public void afterCommit() { ApplicationContextHolder.getApplicationContext().publishEvent(new CustomerPersistedEvent(((CustomerPhone) entity).getCustomer())); } });