public class RepositoryHolderImplementation extends Object implements RepositoryHolder, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
RepositoryHolderImplementation(SpringJpaConfig jpaConfig,
Collection<GenericRepository<?>> autoWiredRepositories) |
| Modifier and Type | Method and Description |
|---|---|
<R extends GenericIndexedRepository<T>,T> |
getIndexedRepository(Class<T> cls) |
<S extends IndexSearcher<T>,T> |
getIndexSearcher(Class<S> searcherClass,
Class<T> type) |
<R extends GenericRepository<T>,T> |
getRepository(Class<T> cls) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public RepositoryHolderImplementation(SpringJpaConfig jpaConfig, Collection<GenericRepository<?>> autoWiredRepositories)
public <R extends GenericRepository<T>,T> R getRepository(Class<T> cls)
getRepository in interface RepositoryHolderRepositoryHolder.getRepository(java.lang.Class)public <R extends GenericIndexedRepository<T>,T> R getIndexedRepository(Class<T> cls)
getIndexedRepository in interface RepositoryHolderRepositoryHolder.getIndexedRepository(java.lang.Class)public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionApplicationContextAware.setApplicationContext(org.springframework.context.ApplicationContext)public <S extends IndexSearcher<T>,T> S getIndexSearcher(Class<S> searcherClass, Class<T> type)
getIndexSearcher in interface RepositoryHolderRepositoryHolder.getIndexSearcher(java.lang.Class, java.lang.Class)Copyright © 2014–2015. All rights reserved.