org.springframework.data.solr.server.support
Class EmbeddedSolrServerFactoryBean
java.lang.Object
org.springframework.data.solr.server.support.EmbeddedSolrServerFactory
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
EmbeddedSolrServerFactoryBean
public EmbeddedSolrServerFactoryBean()
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>
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.