Class SolrRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable>

java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.solr.repository.support.SolrRepositoryFactoryBean<T,S,ID>
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.beans.factory.BeanFactoryAware, org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware, org.springframework.data.repository.core.support.RepositoryFactoryInformation<S,ID>

public class SolrRepositoryFactoryBean<T extends org.springframework.data.repository.Repository<S,ID>,S,ID extends Serializable> extends org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
Spring FactoryBean implementation to ease container based configuration for XML namespace and JavaConfig.
  • Constructor Details

    • SolrRepositoryFactoryBean

      public SolrRepositoryFactoryBean(Class<? extends T> repositoryInterface)
      Creates a new SolrRepositoryFactoryBean for the given repository interface.
      Parameters:
      repositoryInterface - must not be null.
  • Method Details

    • setSolrOperations

      public void setSolrOperations(SolrOperations operations)
      Configures the SolrOperations to be used to create Solr repositories.
      Parameters:
      operations - the operations to set
    • setSolrClient

      public void setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
    • setSchemaCreationSupport

      public void setSchemaCreationSupport(boolean schemaCreationSupport)
    • setSolrConverter

      public void setSolrConverter(SolrConverter solrConverter)
      Parameters:
      solrConverter -
      Since:
      2.1
    • setSolrMappingContext

      public void setSolrMappingContext(SimpleSolrMappingContext solrMappingContext)
      Parameters:
      solrMappingContext -
      Since:
      1.4
    • getSolrMappingContext

      @Nullable public SimpleSolrMappingContext getSolrMappingContext()
      Returns:
      Since:
      1.4
    • getSolrOperations

      @Nullable protected SolrOperations getSolrOperations()
      Returns:
      SolrOperations to be used for eg. custom implementation
    • afterPropertiesSet

      public void afterPropertiesSet()
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.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>
    • doCreateRepositoryFactory

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