public class SpringAggregateSnapshotter extends AggregateSnapshotter implements org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware
AggregateSnapshotter that eases the configuration when
 used within a Spring Application Context. It will automatically detect a Transaction Manager and Aggregate
 Factories.
 
 The only mandatory properties to set is AbstractSnapshotter.setEventStore(org.axonframework.eventstore.SnapshotEventStore). In
 most cases, you should also provide an executor, as the default will execute snapshotter tasks in the calling
 thread.| Constructor and Description | 
|---|
| SpringAggregateSnapshotter() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | afterPropertiesSet() | 
| void | setAggregateFactories(List<AggregateFactory<?>> aggregateFactories)Optionally sets the aggregate factories to use. | 
| void | setApplicationContext(org.springframework.context.ApplicationContext applicationContext) | 
| void | setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)Optionally sets the transaction definition to use. | 
| void | setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)Sets the transaction manager to manager underlying transaction with. | 
createSnapshotcreateSnapshotterTask, getEventStore, getExecutor, scheduleSnapshot, setEventStore, setExecutor, setTxManagerpublic void setTransactionManager(org.springframework.transaction.PlatformTransactionManager transactionManager)
transactionManager - the transaction manager managing underlying transactionspublic void setTransactionDefinition(org.springframework.transaction.TransactionDefinition transactionDefinition)
DefaultTransactionDefinition).transactionDefinition - the transaction definition to usepublic void afterPropertiesSet()
                        throws Exception
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanExceptionpublic void setAggregateFactories(List<AggregateFactory<?>> aggregateFactories)
setAggregateFactories in class AggregateSnapshotteraggregateFactories - The list of aggregate factories creating the aggregates to store.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionCopyright © 2010-2014. All Rights Reserved.