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.-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidorg.apache.solr.client.solrj.embedded.EmbeddedSolrServerClass<? extends org.apache.solr.client.solrj.SolrClient>booleanMethods inherited from class org.springframework.data.solr.server.support.EmbeddedSolrServerFactory
createPathConfiguredSolrServer, destroy, getCores, getSolrClient, initCoreContainer, setSolrHome, shutdownSolrServerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
-
Constructor Details
-
EmbeddedSolrServerFactoryBean
public EmbeddedSolrServerFactoryBean()
-
-
Method Details
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
getObject
- Specified by:
getObjectin interfaceorg.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
-