@Target(value={TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Component @Scope(value="prototype") @AggregateRoot public @interface Aggregate
Component
is an aggregate instance.Modifier and Type | Optional Element and Description |
---|---|
String |
commandTargetResolver
Selects the name of the
CommandTargetResolver bean. |
String |
repository
Selects the name of the AggregateRepository bean.
|
String |
snapshotTriggerDefinition
Sets the name of the bean providing the snapshot trigger definition.
|
String |
type
Get the String representation of the aggregate's type.
|
public abstract String repository
public abstract String snapshotTriggerDefinition
Note that the use of repository()
overrides this setting, as a repository explicitly defines the
snapshot trigger definition.
public abstract String type
public abstract String commandTargetResolver
CommandTargetResolver
bean. If left empty,
CommandTargetResolver
bean from application context will be used. If
the bean is not defined in the application context, AnnotationCommandTargetResolver
will be used.Copyright © 2010–2018. All rights reserved.