public class ElasticsearchRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean implementation to ease container based configuration for
XML namespace and JavaConfig.| Constructor and Description |
|---|
ElasticsearchRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
ElasticsearchRepositoryFactoryBean for the given repository interface. |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
createRepositoryFactory() |
void |
setElasticsearchOperations(ElasticsearchOperations operations)
Configures the
ElasticsearchOperations to be used to create Elasticsearch repositories. |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClasspublic ElasticsearchRepositoryFactoryBean(Class<? extends T> repositoryInterface)
ElasticsearchRepositoryFactoryBean for the given repository interface.repositoryInterface - must not be null.public void setElasticsearchOperations(ElasticsearchOperations operations)
ElasticsearchOperations to be used to create Elasticsearch repositories.operations - the operations to setpublic void afterPropertiesSet()
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>protected RepositoryFactorySupport createRepositoryFactory()
createRepositoryFactory in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>Copyright © 2011–2019 Pivotal Software, Inc.. All rights reserved.