public class ElasticsearchRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
extends org.springframework.data.repository.core.support.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 org.springframework.data.repository.core.support.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, setRepositoryBaseClass
public 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 org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>
protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.