T
- The aggregate typepublic class SpringRepositoryFactoryBean<T> extends Object implements org.springframework.beans.factory.FactoryBean<Repository<T>>
Repository
created by the SpringAggregateConfigurer
to the Spring Application Context.
This will allow it to be injected as a bean.Constructor and Description |
---|
SpringRepositoryFactoryBean(Class<T> aggregateClass)
Constructs the
SpringRepositoryFactoryBean for the provided aggregateClass . |
Modifier and Type | Method and Description |
---|---|
Repository<T> |
getObject() |
Class<?> |
getObjectType() |
void |
setConfiguration(Configuration configuration)
Sets the
Configuration that the Repository will be retrieved from. |
public SpringRepositoryFactoryBean(Class<T> aggregateClass)
SpringRepositoryFactoryBean
for the provided aggregateClass
.aggregateClass
- The aggregate's classpublic Repository<T> getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<Repository<T>>
Exception
public Class<?> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<Repository<T>>
public void setConfiguration(Configuration configuration)
Configuration
that the Repository
will be retrieved from.configuration
- The Configuration
for usage in the factory bean.Copyright © 2010–2023. All rights reserved.