public class R2dbcRepositoryFactoryBean<T extends Repository<S,ID>,S,ID extends Serializable> extends RepositoryFactoryBeanSupport<T,S,ID>
FactoryBean
to create
R2dbcRepository
instances.ReactiveCrudRepository
OBJECT_TYPE_ATTRIBUTE
Constructor and Description |
---|
R2dbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
Creates a new
R2dbcRepositoryFactoryBean for the given repository interface. |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected RepositoryFactorySupport |
createRepositoryFactory() |
protected RepositoryFactorySupport |
getFactoryInstance(DatabaseClient client,
ReactiveDataAccessStrategy dataAccessStrategy)
Creates and initializes a
RepositoryFactorySupport instance. |
void |
setDataAccessStrategy(ReactiveDataAccessStrategy dataAccessStrategy) |
void |
setDatabaseClient(DatabaseClient client)
Configures the
DatabaseClient to be used. |
protected void |
setMappingContext(MappingContext<?,?> mappingContext) |
getEntityInformation, getObject, getObjectType, getPersistentEntity, getQueryMethods, getRepositoryInformation, isSingleton, setApplicationEventPublisher, setBeanClassLoader, setBeanFactory, setCustomImplementation, setEvaluationContextProvider, setLazyInit, setNamedQueries, setQueryLookupStrategyKey, setRepositoryBaseClass, setRepositoryFragments
public R2dbcRepositoryFactoryBean(Class<? extends T> repositoryInterface)
R2dbcRepositoryFactoryBean
for the given repository interface.repositoryInterface
- must not be null.public void setDatabaseClient(@Nullable DatabaseClient client)
DatabaseClient
to be used.client
- the client to setprotected void setMappingContext(@Nullable MappingContext<?,?> mappingContext)
setMappingContext
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
public void setDataAccessStrategy(@Nullable ReactiveDataAccessStrategy dataAccessStrategy)
protected final RepositoryFactorySupport createRepositoryFactory()
createRepositoryFactory
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
protected RepositoryFactorySupport getFactoryInstance(DatabaseClient client, ReactiveDataAccessStrategy dataAccessStrategy)
RepositoryFactorySupport
instance.client
- must not be null.dataAccessStrategy
- must not be null.RepositoryFactorySupport
.public void afterPropertiesSet()
afterPropertiesSet
in interface InitializingBean
afterPropertiesSet
in class RepositoryFactoryBeanSupport<T extends Repository<S,ID>,S,ID extends Serializable>
Copyright © 2018–2020 Pivotal Software, Inc.. All rights reserved.