Spring Data Solr

org.springframework.data.solr.repository.support
Class SolrRepositoryFactoryBean<T extends 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.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
          extended by org.springframework.data.solr.repository.support.SolrRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
Aware, BeanClassLoaderAware, BeanFactoryAware, FactoryBean<T>, InitializingBean, RepositoryFactoryInformation<S,ID>

public class SolrRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
extends TransactionalRepositoryFactoryBeanSupport<T,S,ID>

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

Author:
Oliver Gierke, Christoph Strobl

Constructor Summary
SolrRepositoryFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
protected  RepositoryFactorySupport doCreateRepositoryFactory()
           
protected  SolrOperations getSolrOperations()
           
 void setSolrOperations(SolrOperations operations)
          Configures the SolrOperations to be used to create Solr repositories.
 void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
           
 
Methods inherited from class org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport
createRepositoryFactory, setBeanFactory, setTransactionManager
 
Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterface
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrRepositoryFactoryBean

public SolrRepositoryFactoryBean()
Method Detail

setSolrOperations

public void setSolrOperations(SolrOperations operations)
Configures the SolrOperations to be used to create Solr repositories.

Parameters:
operations - the operations to set

setSolrServer

public void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)

getSolrOperations

protected SolrOperations getSolrOperations()
Returns:
SolrOperations to be used for eg. custom implementation

afterPropertiesSet

public void afterPropertiesSet()
Specified by:
afterPropertiesSet in interface InitializingBean
Overrides:
afterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>

doCreateRepositoryFactory

protected RepositoryFactorySupport doCreateRepositoryFactory()
Specified by:
doCreateRepositoryFactory in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.