public class SpringAggregateSnapshotterFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<SpringAggregateSnapshotter>, 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.| Constructor and Description | 
|---|
SpringAggregateSnapshotterFactoryBean()  | 
| Modifier and Type | Method and Description | 
|---|---|
SpringAggregateSnapshotter | 
getObject()  | 
Class<?> | 
getObjectType()  | 
boolean | 
isSingleton()  | 
void | 
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)  | 
void | 
setEventStore(EventStore eventStore)
Sets the Event Store instance to write the snapshots to 
 | 
void | 
setExecutor(Executor executor)
Sets the executor to process the creation (and storage) of each snapshot. 
 | 
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. 
 | 
public SpringAggregateSnapshotterFactoryBean()
public SpringAggregateSnapshotter getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<SpringAggregateSnapshotter>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<SpringAggregateSnapshotter>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<SpringAggregateSnapshotter>public 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 setEventStore(EventStore eventStore)
eventStore - The Event Store to store the snapshot events inpublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
                           throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void setExecutor(Executor executor)
executor - The executor to process creation and storage of the snapshots withCopyright © 2010–2018. All rights reserved.