org.qi4j.library.eventsourcing.domain.replay

## Class DomainEventPlayerService.Mixin

- java.lang.Object
- - org.qi4j.library.eventsourcing.domain.replay.DomainEventPlayerService.Mixin

- All Implemented Interfaces:
    DomainEventPlayer
  Enclosing interface:
    DomainEventPlayerService

      public static class DomainEventPlayerService.Mixin
      extends Object
      implements DomainEventPlayer

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DomainEventPlayerService.Mixin()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `playEvent(DomainEventValue domainEventValue, Object object)` Invoke a domain event on a particular object.
    `void` | `playTransaction(UnitOfWorkDomainEventsValue unitOfWorkDomainValue)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DomainEventPlayerService.Mixin

          public DomainEventPlayerService.Mixin()

  - ### Method Detail

    - #### playTransaction

          public void playTransaction(UnitOfWorkDomainEventsValue unitOfWorkDomainValue)
                               throws EventReplayException

      Specified by:
        `playTransaction` in interface `DomainEventPlayer`
      Throws:
        `EventReplayException`

    - #### playEvent

          public void playEvent(DomainEventValue domainEventValue,
                       Object object)
                         throws EventReplayException

      Description copied from interface: `DomainEventPlayer`
      Invoke a domain event on a particular object. The object could be the original object, but could also be a service that wants to be invoked to handle the event.
      Specified by:
        `playEvent` in interface `DomainEventPlayer`
      Parameters:
        `domainEventValue` - Domain event value
        `object` - target
      Throws:
        `EventReplayException` - if unable to play event