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.OBJECT_TYPE_ATTRIBUTE| 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. |
addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragmentspublic 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 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–2023 Pivotal Software, Inc.. All rights reserved.