Class EmbeddedSolrServerFactoryBean

java.lang.Object
org.springframework.data.solr.server.support.EmbeddedSolrServerFactory
org.springframework.data.solr.server.support.EmbeddedSolrServerFactoryBean
All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>, org.springframework.beans.factory.InitializingBean, SolrClientFactory

public class EmbeddedSolrServerFactoryBean extends EmbeddedSolrServerFactory implements org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>, org.springframework.beans.factory.InitializingBean, org.springframework.beans.factory.DisposableBean
Implementation of FactoryBean for registration of an EmbeddedSolrServer as a Spring bean. Implements DisposableBean to shut down the core container when the enclosing Spring container is destroyed.
  • Constructor Details

    • EmbeddedSolrServerFactoryBean

      public EmbeddedSolrServerFactoryBean()
  • Method Details

    • afterPropertiesSet

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • getObject

      public org.apache.solr.client.solrj.embedded.EmbeddedSolrServer getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
      Throws:
      Exception
    • getObjectType

      public Class<? extends org.apache.solr.client.solrj.SolrClient> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>