public class SolrRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends TransactionalRepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
implementation to ease container based configuration for XML namespace and JavaConfig.OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
SolrRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
SolrRepositoryFactoryBean for the given repository interface. |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
doCreateRepositoryFactory() |
SimpleSolrMappingContext |
getSolrMappingContext() |
protected SolrOperations |
getSolrOperations() |
void |
setSchemaCreationSupport(boolean schemaCreationSupport) |
void |
setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient) |
void |
setSolrConverter(SolrConverter solrConverter) |
void |
setSolrMappingContext(SimpleSolrMappingContext solrMappingContext) |
void |
setSolrOperations(SolrOperations operations)
Configures the
SolrOperations to be used to create Solr repositories. |
createRepositoryFactory, setBeanFactory, setEnableDefaultTransactions, setTransactionManager
addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setMappingContext, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
public SolrRepositoryFactoryBean(Class<? extends T> repositoryInterface)
SolrRepositoryFactoryBean
for the given repository interface.repositoryInterface
- must not be null.public void setSolrOperations(SolrOperations operations)
SolrOperations
to be used to create Solr repositories.operations
- the operations to setpublic void setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public void setSchemaCreationSupport(boolean schemaCreationSupport)
public void setSolrConverter(SolrConverter solrConverter)
solrConverter
- public void setSolrMappingContext(SimpleSolrMappingContext solrMappingContext)
solrMappingContext
- @Nullable public SimpleSolrMappingContext getSolrMappingContext()
@Nullable protected SolrOperations getSolrOperations()
public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected RepositoryFactorySupport doCreateRepositoryFactory()
doCreateRepositoryFactory
in class TransactionalRepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.