public class SpringAggregateSnapshotterFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<org.axonframework.eventsourcing.AggregateSnapshotter>, 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 |
|---|---|
org.axonframework.eventsourcing.AggregateSnapshotter |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAggregateFactories(List<org.axonframework.eventsourcing.AggregateFactory<?>> aggregateFactories)
Optionally sets the aggregate factories to use.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setEventStore(org.axonframework.eventsourcing.eventstore.EventStore eventStore)
Sets the Event Store instance to write the snapshots to
|
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 org.axonframework.eventsourcing.AggregateSnapshotter getObject()
throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<org.axonframework.eventsourcing.AggregateSnapshotter>Exceptionpublic Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<org.axonframework.eventsourcing.AggregateSnapshotter>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<org.axonframework.eventsourcing.AggregateSnapshotter>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 setAggregateFactories(List<org.axonframework.eventsourcing.AggregateFactory<?>> aggregateFactories)
aggregateFactories - The list of aggregate factories creating the aggregates to store.public void setEventStore(org.axonframework.eventsourcing.eventstore.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.BeansExceptionCopyright © 2010–2016. All rights reserved.