-
- All Implemented Interfaces:
-
org.enodeframework.domain.AggregateRootFactory
public final class DefaultAggregateRootFactory implements AggregateRootFactory
-
-
Constructor Summary
Constructors Constructor Description DefaultAggregateRootFactory()
-
Method Summary
Modifier and Type Method Description <T extends AggregateRoot> TcreateAggregateRoot(Class<T>Â aggregateRootType)Aggregate root factory that uses a convention to create instances of aggregate root. -
-
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.
-
-
-
-