T - The type of Aggregate to configurepublic class SpringAggregateConfigurer<T> extends Object implements ConfigurerModule, org.springframework.context.ApplicationContextAware
ConfigurerModule implementation that will configure an Aggregate with the Axon Configuration.| Constructor and Description |
|---|
SpringAggregateConfigurer(Class<T> aggregateType,
Set<Class<? extends T>> subTypes)
|
| Modifier and Type | Method and Description |
|---|---|
void |
configureModule(Configurer configurer)
Configure this module to the given global
Configurer. |
void |
setAggregateFactory(String aggregateFactory)
Sets the bean name of the
AggregateFactory to use for this Aggregate. |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCache(String cache)
Sets the bean name of the
Cache to use for this Aggregate. |
void |
setCommandTargetResolver(String commandTargetResolver)
Sets the bean name of the
CommandTargetResolver to use for this Aggregate. |
void |
setFilterEventsByType(boolean filterEventsByType)
Indicates whether to enable "filter events by type" for this Aggregate.
|
void |
setLockFactory(String lockFactory)
Sets the bean name of the
LockFactory to use for this Aggregate. |
void |
setRepository(String aggregateRepository)
Sets the bean name of the
Repository to configure for this Aggregate. |
void |
setSnapshotFilter(String snapshotFilter)
Sets the bean name of the
SnapshotFilter to configure for this Aggregate. |
void |
setSnapshotTriggerDefinition(String snapshotTriggerDefinition)
Sets the bean name of the
SnapshotTriggerDefinition to use for this Aggregate. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitorderpublic void setRepository(String aggregateRepository)
Repository to configure for this Aggregate.aggregateRepository - The bean name of the Repository for this Aggregate.public void setSnapshotFilter(String snapshotFilter)
SnapshotFilter to configure for this Aggregate.snapshotFilter - The bean name of the SnapshotFilter to configure for this Aggregate.public void setSnapshotTriggerDefinition(String snapshotTriggerDefinition)
SnapshotTriggerDefinition to use for this Aggregate.snapshotTriggerDefinition - The bean name of the SnapshotTriggerDefinition to use for this
Aggregate.public void setCommandTargetResolver(String commandTargetResolver)
CommandTargetResolver to use for this Aggregate.commandTargetResolver - The bean name of the CommandTargetResolver to use for this Aggregate.public void setFilterEventsByType(boolean filterEventsByType)
true, only Domain Event
Messages with a "type" that match the Aggregate type will be read. This is useful when multiple aggregates with
different types but equal identifiers share the same event store. Will be ignored if a Repository is also
configured.filterEventsByType - Whether to enable "filter events by type" for this Aggregate.public void setCache(String cache)
Cache to use for this Aggregate. Will be ignored if a Repository is
also configured.cache - The bean name of the Cache to use for this Aggregate.public void setLockFactory(String lockFactory)
LockFactory to use for this Aggregate. Will be ignored if a Repository
is also configured.lockFactory - The bean name of the LockFactory to use for this Aggregate.public void setAggregateFactory(String aggregateFactory)
AggregateFactory to use for this Aggregate. Will be ignored if a Repository is also configured.aggregateFactory - The bean name of the AggregateFactory to use for this Aggregate.public void configureModule(@Nonnull Configurer configurer)
ConfigurerModuleConfigurer.configureModule in interface ConfigurerModuleconfigurer - a Configurer instance to configure this module withpublic void setApplicationContext(@Nonnull org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010–2025. All rights reserved.