T - The type of aggregate generated by this aggregate factorypublic class SpringPrototypeAggregateFactory<T> extends Object implements org.axonframework.eventsourcing.AggregateFactory<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.BeanNameAware
| Constructor and Description |
|---|
SpringPrototypeAggregateFactory() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
T |
createAggregateRoot(String aggregateIdentifier,
org.axonframework.eventsourcing.DomainEventMessage<?> firstEvent) |
Class<T> |
getAggregateType() |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setBeanName(String beanName) |
void |
setPrototypeBeanName(String prototypeBeanName)
Sets the name of the prototype bean this repository serves.
|
public T createAggregateRoot(String aggregateIdentifier, org.axonframework.eventsourcing.DomainEventMessage<?> firstEvent)
createAggregateRoot in interface org.axonframework.eventsourcing.AggregateFactory<T>public Class<T> getAggregateType()
getAggregateType in interface org.axonframework.eventsourcing.AggregateFactory<T>public void setPrototypeBeanName(String prototypeBeanName)
prototypeBeanName - the name of the prototype bean this repository serves.public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
setApplicationContext in interface org.springframework.context.ApplicationContextAwarepublic void setBeanName(String beanName)
setBeanName in interface org.springframework.beans.factory.BeanNameAwarepublic void afterPropertiesSet()
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBeanCopyright © 2010–2018. All rights reserved.