@Documented @Retention(value=RUNTIME) @Target(value={METHOD,ANNOTATION_TYPE}) @HasHandlerAttributes public @interface CreationPolicy
AggregateCreationPolicy.CREATE_IF_MISSING
or AggregateCreationPolicy.ALWAYS
on a command handler to create a
new instance of the aggregate from a handler operation.Modifier and Type | Optional Element and Description |
---|---|
AggregateCreationPolicy |
value
Specifies the
AggregateCreationPolicy to apply. |
public abstract AggregateCreationPolicy value
AggregateCreationPolicy
to apply. NEVER
when not set.Copyright © 2010–2023. All rights reserved.