Spring Data Elasticsearch

org.springframework.data.elasticsearch.repository.support
Class ElasticsearchRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

java.lang.Object
  extended by org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
      extended by org.springframework.data.elasticsearch.repository.support.ElasticsearchRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
FactoryBean<T>, InitializingBean, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>

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>

Spring FactoryBean implementation to ease container based configuration for XML namespace and JavaConfig.


Constructor Summary
ElasticsearchRepositoryFactoryBean()
           
 
Method Summary
 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.
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
getEntityInformation, getObject, getObjectType, getQueryMethods, getRepositoryInformation, isSingleton, setCustomImplementation, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElasticsearchRepositoryFactoryBean

public ElasticsearchRepositoryFactoryBean()
Method Detail

setElasticsearchOperations

public void setElasticsearchOperations(ElasticsearchOperations operations)
Configures the ElasticsearchOperations to be used to create Elasticsearch repositories.

Parameters:
operations - the operations to set

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

createRepositoryFactory

protected org.springframework.data.repository.core.support.RepositoryFactorySupport createRepositoryFactory()
Specified by:
createRepositoryFactory in class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

Spring Data Elasticsearch

Copyright © 2013 BioMed Central. All Rights Reserved.