Class SpringAggregateSnapshotter

All Implemented Interfaces:
Snapshotter, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

public class SpringAggregateSnapshotter extends AggregateSnapshotter implements org.springframework.context.ApplicationContextAware
Snapshotter implementation that uses the AggregateRoot as state for the snapshot. Unlike the AggregateSnapshotter, this implementation lazily retrieves AggregateFactories from the Application Context when snapshot requests are made.

Instead of configuring directly, consider using the SpringAggregateSnapshotterFactoryBean, which configures this class using values available in the application context.

Since:
3.0
Author:
Allard Buijze
See Also: