public class EmbeddedSolrServerFactoryBean extends EmbeddedSolrServerFactory implements FactoryBean<org.apache.solr.client.solrj.SolrServer>, InitializingBean, 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() |
void |
destroy() |
org.apache.solr.client.solrj.SolrServer |
getObject() |
Class<? extends org.apache.solr.client.solrj.SolrServer> |
getObjectType() |
boolean |
isSingleton() |
createPathConfiguredSolrServer, getCore, getSolrServer, initSolrServer, setSolrHome, shutdownSolrServer
public void destroy() throws Exception
destroy
in interface DisposableBean
Exception
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public org.apache.solr.client.solrj.SolrServer getObject() throws Exception
getObject
in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
Exception
public Class<? extends org.apache.solr.client.solrj.SolrServer> getObjectType()
getObjectType
in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
public boolean isSingleton()
isSingleton
in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.