org.qi4j.library.eventsourcing.application.source.helper
Class ApplicationEvents
java.lang.Object
org.qi4j.library.eventsourcing.application.source.helper.ApplicationEvents
public class ApplicationEvents
- extends Object
Helper methods for working with Iterables of DomainEvents and UnitOfWorkDomainEventsValue.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ApplicationEvents
public ApplicationEvents()
events
public static Iterable<ApplicationEvent> events(Iterable<TransactionApplicationEvents> transactions)
events
public static Iterable<ApplicationEvent> events(TransactionApplicationEvents... transactionDomains)
matches
public static boolean matches(Specification<ApplicationEvent> specification,
Iterable<TransactionApplicationEvents> transactions)
withNames
public static Specification<ApplicationEvent> withNames(Iterable<String> names)
withNames
public static Specification<ApplicationEvent> withNames(String... names)
withNames
public static Specification<ApplicationEvent> withNames(Class eventClass)
afterDate
public static Specification<ApplicationEvent> afterDate(Date afterDate)
beforeDate
public static Specification<ApplicationEvent> beforeDate(Date beforeDate)
withUsecases
public static Specification<ApplicationEvent> withUsecases(String... names)
paramIs
public static Specification<ApplicationEvent> paramIs(String name,
String value)
playEvents
public static Output<TransactionApplicationEvents,ApplicationEventReplayException> playEvents(ApplicationEventPlayer player,
Object eventHandler)