Skip to content

Allow more fine grained configuration control in @Aggregate annotation #337

@abuijze

Description

@abuijze

When using Spring Autoconfiguration, the @Aggregate annotation allows for configuration of all components around an Aggregate Root. However, besides the repository, nothing can be configured explicitly.

There should be two ways of configuring the Aggregate:

  • have an AggregateConfigurer bean in the context
  • using attributes on the @Aggregate annotation for the beans to use as
    • Repository (already implemented)
    • CommandTargetResolver
    • AggregateFactory (implemented using default-name-lookup)
    • SnapshotTriggerDefinition, either as bean name or as snapshot-count-value

Metadata

Metadata

Assignees

Labels

Priority 3: CouldLow priority. Issues that are nice to have but have a straightforward workaround.Status: ResolvedUse to signal that work on this issue is done.Type: FeatureUse to signal an issue is completely new to the project.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions