org.axonframework.contextsupport.spring
Class DisruptorRepositoryBeanDefinitionParser.RepositoryFactoryBean

java.lang.Object
  extended by org.axonframework.contextsupport.spring.DisruptorRepositoryBeanDefinitionParser.RepositoryFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.FactoryBean<Repository>
Enclosing class:
DisruptorRepositoryBeanDefinitionParser

public static class DisruptorRepositoryBeanDefinitionParser.RepositoryFactoryBean
extends Object
implements org.springframework.beans.factory.FactoryBean<Repository>

FactoryBean to create repository instances for use with the DisruptorCommandBus


Constructor Summary
DisruptorRepositoryBeanDefinitionParser.RepositoryFactoryBean()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DisruptorRepositoryBeanDefinitionParser.RepositoryFactoryBean

public DisruptorRepositoryBeanDefinitionParser.RepositoryFactoryBean()
Method Detail

getObject

public Repository getObject()
                     throws Exception
Specified by:
getObject in interface org.springframework.beans.factory.FactoryBean<Repository>
Throws:
Exception

getObjectType

public Class<?> getObjectType()
Specified by:
getObjectType in interface org.springframework.beans.factory.FactoryBean<Repository>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.springframework.beans.factory.FactoryBean<Repository>

setCommandBus

public void setCommandBus(DisruptorCommandBus commandBus)
The DisruptorCommandBus instance to create the repository from. This is a required property, but cannot be set using constructor injection, as Spring will see it as a circular dependency.

Parameters:
commandBus - DisruptorCommandBus instance to create the repository from

setAggregateFactory

public void setAggregateFactory(AggregateFactory<? extends EventSourcedAggregateRoot> factory)
Sets the aggregate factory used to create instances for the repository to create. This is a required property, but cannot be set using constructor injection, as Spring will see it as a circular dependency.

Parameters:
factory - the aggregate factory used to create instances for the repository to create

setEventStreamDecorators

public void setEventStreamDecorators(List<EventStreamDecorator> decorators)
Sets the (additional) decorators to use when loading and storing events from/to the Event Store.

Parameters:
decorators - the decorators to decorate event streams with

setSnapshotterTrigger

public void setSnapshotterTrigger(SnapshotterTrigger snapshotterTrigger)
The snapshotter trigger instance that will decide when to trigger a snapshot

Parameters:
snapshotterTrigger - The trigger to configure on the DisruptorCommandBus


Copyright © 2010-2016. All Rights Reserved.