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
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 and Description |
---|
EmbeddedSolrServerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer |
getObject() |
Class<? extends org.apache.solr.client.solrj.SolrClient> |
getObjectType() |
boolean |
isSingleton() |
createPathConfiguredSolrServer, destroy, getCores, getSolrClient, getSolrClient, initCoreContainer, setSolrHome, shutdownSolrServer
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public org.apache.solr.client.solrj.embedded.EmbeddedSolrServer getObject() throws Exception
getObject
in interface org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
Exception
public Class<? extends org.apache.solr.client.solrj.SolrClient> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
public boolean isSingleton()
isSingleton
in interface org.springframework.beans.factory.FactoryBean<org.apache.solr.client.solrj.SolrClient>
Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.