Package 

Class DefaultAggregateRootFactory

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      <T extends AggregateRoot> T createAggregateRoot(Class<T> aggregateRootType) Aggregate root factory that uses a convention to create instances of aggregate root.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultAggregateRootFactory

        DefaultAggregateRootFactory()
    • Method Detail

      • createAggregateRoot

         <T extends AggregateRoot> T createAggregateRoot(Class<T> aggregateRootType)

        Aggregate root factory that uses a convention to create instances of aggregate root. The type must declare a no-arg constructor accepting.

        <p> If the constructor is not accessible (not public), and the JVM's security setting allow it, the factory will try to make it accessible use declared constructor. If that doesn't succeed, an AggregateRootCreateException is thrown.