Class R2dbcMapperFactoryBean<T>
java.lang.Object
pro.chenggang.project.reactive.mybatis.support.r2dbc.spring.mapper.R2dbcMapperFactoryBean<T>
- Type Parameters:
T- the type parameter
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.FactoryBean<T>,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
public class R2dbcMapperFactoryBean<T>
extends Object
implements org.springframework.beans.factory.FactoryBean<T>, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationListener<org.springframework.context.event.ContextRefreshedEvent>
R2dbcMapperFactoryBean
- Version:
- 1.0.0
- Author:
- Gang Cheng
-
Field Summary
FieldsFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
ConstructorsConstructorDescriptionInstantiates a new r2dbc mapper factory bean.R2dbcMapperFactoryBean(Class<T> clazz) Instantiates a new r2dbc mapper factory bean. -
Method Summary
Modifier and TypeMethodDescriptionvoidClass<?>booleanvoidonApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) voidsetFailFast(boolean failFast) If true, a final check is done on Configuration to assure that all mapped statements are fully loaded and there is no one still pending to resolve includes.voidsetMapperInterface(Class<T> mapperInterface) Sets mapper interface.voidsetSqlSessionFactory(ReactiveSqlSessionFactory reactiveSqlSessionFactory) Sets sql session factory.
-
Field Details
-
mapperInterface
-
reactiveSqlSessionFactory
-
-
Constructor Details
-
R2dbcMapperFactoryBean
public R2dbcMapperFactoryBean()Instantiates a new r2dbc mapper factory bean. -
R2dbcMapperFactoryBean
Instantiates a new r2dbc mapper factory bean.- Parameters:
clazz- the clazz
-
-
Method Details
-
getObject
-
getObjectType
- Specified by:
getObjectTypein interfaceorg.springframework.beans.factory.FactoryBean<T>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceorg.springframework.beans.factory.FactoryBean<T>
-
setMapperInterface
Sets mapper interface.- Parameters:
mapperInterface- the mapper interface
-
setSqlSessionFactory
Sets sql session factory.- Parameters:
reactiveSqlSessionFactory- the reactive sql session factory
-
setFailFast
public void setFailFast(boolean failFast) If true, a final check is done on Configuration to assure that all mapped statements are fully loaded and there is no one still pending to resolve includes. Defaults to false.- Parameters:
failFast- enable failFast
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<T>
-