Class StatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactory

java.lang.Object
dk.cloudcreate.essentials.components.eventsourced.aggregates.stateful.StatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactory
All Implemented Interfaces:
StatefulAggregateInstanceFactory
Enclosing interface:
StatefulAggregateInstanceFactory

public static class StatefulAggregateInstanceFactory.ObjenesisAggregateInstanceFactory extends Object implements StatefulAggregateInstanceFactory
StatefulAggregateInstanceFactory that uses Objenesis to create a new instance of the Aggregate
Please note: Objenesis doesn't initialize fields nor call any constructors, so you Aggregate design needs to take this into consideration.
All concrete aggregates that extends AggregateRoot have been prepared to be initialized by Objenesis
  • Constructor Details

    • ObjenesisAggregateInstanceFactory

      public ObjenesisAggregateInstanceFactory()
  • Method Details