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.
|
public DisruptorCommandBusBeanDefinitionParser.RepositoryFactoryBean()
public Repository getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<Repository>Exceptionpublic 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 createCopyright © 2010-2014. All Rights Reserved.