Spring Data Solr

org.springframework.data.solr.server.support
Class EmbeddedSolrServerFactoryBean

java.lang.Object
  extended by org.springframework.data.solr.server.support.EmbeddedSolrServerFactory
      extended by org.springframework.data.solr.server.support.EmbeddedSolrServerFactoryBean
All Implemented Interfaces:
DisposableBean, FactoryBean<org.apache.solr.client.solrj.SolrServer>, InitializingBean, SolrServerFactory

public class EmbeddedSolrServerFactoryBean
extends EmbeddedSolrServerFactory
implements FactoryBean<org.apache.solr.client.solrj.SolrServer>, InitializingBean, 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.

Author:
Christoph Strobl

Constructor Summary
EmbeddedSolrServerFactoryBean()
           
 
Method Summary
 void afterPropertiesSet()
           
 org.apache.solr.client.solrj.SolrServer getObject()
           
 Class<? extends org.apache.solr.client.solrj.SolrServer> getObjectType()
           
 boolean isSingleton()
           
 
Methods inherited from class org.springframework.data.solr.server.support.EmbeddedSolrServerFactory
createPathConfiguredSolrServer, destroy, getCores, getSolrServer, getSolrServer, initSolrServer, setSolrHome, shutdownSolrServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Constructor Detail

EmbeddedSolrServerFactoryBean

public EmbeddedSolrServerFactoryBean()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

getObject

public org.apache.solr.client.solrj.SolrServer getObject()
                                                  throws Exception
Specified by:
getObject in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
Throws:
Exception

getObjectType

public Class<? extends org.apache.solr.client.solrj.SolrServer> getObjectType()
Specified by:
getObjectType in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>

Spring Data Solr

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