A - The aggregate type this factory constructs.public class NoArgumentConstructorCreationPolicyAggregateFactory<A> extends Object implements CreationPolicyAggregateFactory<A>
CreationPolicyAggregateFactory that invokes the default, no-arguments constructor
of the aggregate class A.| Constructor and Description |
|---|
NoArgumentConstructorCreationPolicyAggregateFactory(Class<? extends A> aggregateClass)
Construct an instance of the
NoArgumentConstructorCreationPolicyAggregateFactory for the given type. |
| Modifier and Type | Method and Description |
|---|---|
A |
create(Object identifier)
Creates the aggregate instance based on the previously provided type.
|
public NoArgumentConstructorCreationPolicyAggregateFactory(@Nonnull Class<? extends A> aggregateClass)
NoArgumentConstructorCreationPolicyAggregateFactory for the given type.aggregateClass - The aggregate type.@Nonnull public A create(@Nullable Object identifier)
create in interface CreationPolicyAggregateFactory<A>identifier - The identifier to create the aggregate with. Not used by this factory.Copyright © 2010–2025. All rights reserved.