public static class DisruptorCommandBusBeanDefinitionParser.RepositoryFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<Repository>
Constructor and Description |
---|
DisruptorCommandBusBeanDefinitionParser.RepositoryFactoryBean() |
Modifier and Type | Method and Description |
---|---|
Repository |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setAggregateFactory(AggregateFactory<? extends EventSourcedAggregateRoot> factory)
Sets the aggregate factory used to create instances for the repository to create.
|
void |
setCommandBus(DisruptorCommandBus commandBus)
The DisruptorCommandBus instance to create the repository from.
|
void |
setEventStreamDecorators(List<EventStreamDecorator> decorators)
Sets the (additional) decorators to use when loading and storing events from/to the Event Store.
|
void |
setSnapshotterTrigger(SnapshotterTrigger snapshotterTrigger)
The snapshotter trigger instance that will decide when to trigger a snapshot
|
public DisruptorCommandBusBeanDefinitionParser.RepositoryFactoryBean()
public Repository getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<Repository>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<Repository>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<Repository>
public void setCommandBus(DisruptorCommandBus commandBus)
commandBus
- DisruptorCommandBus instance to create the repository frompublic void setAggregateFactory(AggregateFactory<? extends EventSourcedAggregateRoot> factory)
factory
- the aggregate factory used to create instances for the repository to createpublic void setEventStreamDecorators(List<EventStreamDecorator> decorators)
decorators
- the decorators to decorate event streams withpublic void setSnapshotterTrigger(SnapshotterTrigger snapshotterTrigger)
snapshotterTrigger
- The trigger to configure on the DisruptorCommandBusCopyright © 2010-2014. All Rights Reserved.