Class ReactiveElasticsearchRepositoryFactoryBean<T extends Repository<S,ID>,S,ID>
java.lang.Object
org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport<T,S,ID>
org.springframework.data.elasticsearch.repository.support.ReactiveElasticsearchRepositoryFactoryBean<T,S,ID>
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,FactoryBean<T>
,InitializingBean
,ApplicationEventPublisherAware
,RepositoryFactoryInformation<S,
ID>
public class ReactiveElasticsearchRepositoryFactoryBean<T extends Repository<S,ID>,S,ID>
extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create
ReactiveElasticsearchRepository
instances.- Since:
- 3.2
- Author:
- Christoph Strobl
- See Also:
-
Field Summary
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
ConstructorDescriptionReactiveElasticsearchRepositoryFactoryBean
(Class<? extends T> repositoryInterface) Creates a newReactiveElasticsearchRepositoryFactoryBean
for the given repository interface. -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected final RepositoryFactorySupport
protected RepositoryFactorySupport
getFactoryInstance
(ReactiveElasticsearchOperations operations) Creates and initializes aRepositoryFactorySupport
instance.protected void
setMappingContext
(MappingContext<?, ?> mappingContext) void
Configures theReactiveElasticsearchOperations
to be used.Methods inherited from class org.springframework.data.repository.core.support.RepositoryFactoryBeanSupport
addRepositoryFactoryCustomizer, createDefaultQueryMethodEvaluationContextProvider, getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
-
Constructor Details
-
ReactiveElasticsearchRepositoryFactoryBean
Creates a newReactiveElasticsearchRepositoryFactoryBean
for the given repository interface.- Parameters:
repositoryInterface
- must not be null.
-
-
Method Details
-
setReactiveElasticsearchOperations
public void setReactiveElasticsearchOperations(@Nullable ReactiveElasticsearchOperations operations) Configures theReactiveElasticsearchOperations
to be used.- Parameters:
operations
- the operations to set
-
setMappingContext
- Overrides:
setMappingContext
in classRepositoryFactoryBeanSupport<T extends Repository<S,
ID>, S, ID>
-
createRepositoryFactory
- Specified by:
createRepositoryFactory
in classRepositoryFactoryBeanSupport<T extends Repository<S,
ID>, S, ID>
-
getFactoryInstance
Creates and initializes aRepositoryFactorySupport
instance.- Parameters:
operations
-- Returns:
-
afterPropertiesSet
public void afterPropertiesSet()- Specified by:
afterPropertiesSet
in interfaceInitializingBean
- Overrides:
afterPropertiesSet
in classRepositoryFactoryBeanSupport<T extends Repository<S,
ID>, S, ID>
-