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 Details

  • Constructor Details

    • R2dbcMapperFactoryBean

      public R2dbcMapperFactoryBean()
      Instantiates a new r2dbc mapper factory bean.
    • R2dbcMapperFactoryBean

      public R2dbcMapperFactoryBean(Class<T> clazz)
      Instantiates a new r2dbc mapper factory bean.
      Parameters:
      clazz - the clazz
  • Method Details

    • getObject

      public T getObject() throws Exception
      Specified by:
      getObject in interface org.springframework.beans.factory.FactoryBean<T>
      Throws:
      Exception
    • getObjectType

      public Class<?> getObjectType()
      Specified by:
      getObjectType in interface org.springframework.beans.factory.FactoryBean<T>
    • isSingleton

      public boolean isSingleton()
      Specified by:
      isSingleton in interface org.springframework.beans.factory.FactoryBean<T>
    • setMapperInterface

      public void setMapperInterface(Class<T> mapperInterface)
      Sets mapper interface.
      Parameters:
      mapperInterface - the mapper interface
    • setSqlSessionFactory

      public void setSqlSessionFactory(ReactiveSqlSessionFactory reactiveSqlSessionFactory)
      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

      public void afterPropertiesSet() throws Exception
      Specified by:
      afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
      Throws:
      Exception
    • onApplicationEvent

      public void onApplicationEvent(org.springframework.context.event.ContextRefreshedEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<T>