|
Spring Data Commmons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springframework.data.repository.support.RepositoryFactoryBeanSupport<T>
T
- the type of the repositorypublic abstract class RepositoryFactoryBeanSupport<T extends Repository<?,?>>
Adapter for Springs FactoryBean
interface to allow easy setup of
repository factories via Spring configuration.
Constructor Summary | |
---|---|
RepositoryFactoryBeanSupport()
|
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
protected abstract RepositoryFactorySupport |
createRepositoryFactory()
Create the actual RepositoryFactorySupport instance. |
T |
getObject()
|
Class<? extends T> |
getObjectType()
|
protected List<RepositoryProxyPostProcessor> |
getRepositoryPostProcessors()
Returns all RepositoryProxyPostProcessor to be added to the
repository factory to be created. |
boolean |
isSingleton()
|
void |
setCustomImplementation(Object customImplementation)
Setter to inject a custom repository implementation. |
void |
setQueryLookupStrategyKey(QueryLookupStrategy.Key queryLookupStrategyKey)
Set the QueryLookupStrategy.Key to be used. |
void |
setRepositoryInterface(Class<? extends T> repositoryInterface)
Setter to inject the repository interface to implement. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RepositoryFactoryBeanSupport()
Method Detail |
---|
public void setRepositoryInterface(Class<? extends T> repositoryInterface)
repositoryInterface
- the repository interface to setpublic void setQueryLookupStrategyKey(QueryLookupStrategy.Key queryLookupStrategyKey)
QueryLookupStrategy.Key
to be used.
queryLookupStrategyKey
- public void setCustomImplementation(Object customImplementation)
customImplementation
- public T getObject()
getObject
in interface FactoryBean<T extends Repository<?,?>>
public Class<? extends T> getObjectType()
getObjectType
in interface FactoryBean<T extends Repository<?,?>>
public boolean isSingleton()
isSingleton
in interface FactoryBean<T extends Repository<?,?>>
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
protected List<RepositoryProxyPostProcessor> getRepositoryPostProcessors()
RepositoryProxyPostProcessor
to be added to the
repository factory to be created. Default implementation will return an
empty list.
protected abstract RepositoryFactorySupport createRepositoryFactory()
RepositoryFactorySupport
instance.
|
Spring Data Commmons | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |