org.springframework.data.solr.repository.support
Class SolrRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.repository.core.support.TransactionalRepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.solr.repository.support.SolrRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
- Aware, BeanClassLoaderAware, BeanFactoryAware, FactoryBean<T>, InitializingBean, RepositoryFactoryInformation<S,ID>
public class SolrRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable>
- extends TransactionalRepositoryFactoryBeanSupport<T,S,ID>
Spring FactoryBean implementation to ease container based configuration for XML namespace and JavaConfig.
- Author:
- Oliver Gierke, Christoph Strobl
| Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setBeanClassLoader, setCustomImplementation, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryInterface |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SolrRepositoryFactoryBean
public SolrRepositoryFactoryBean()
setSolrOperations
public void setSolrOperations(SolrOperations operations)
- Configures the
SolrOperations to be used to create Solr repositories.
- Parameters:
operations - the operations to set
setSolrServer
public void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
getSolrOperations
protected SolrOperations getSolrOperations()
- Returns:
- SolrOperations to be used for eg. custom implementation
afterPropertiesSet
public void afterPropertiesSet()
- Specified by:
afterPropertiesSet in interface InitializingBean- Overrides:
afterPropertiesSet in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
doCreateRepositoryFactory
protected RepositoryFactorySupport doCreateRepositoryFactory()
- Specified by:
doCreateRepositoryFactory in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.