Class SqlSessionFactoryProvider

java.lang.Object
org.mybatis.guice.session.SqlSessionFactoryProvider
All Implemented Interfaces:
jakarta.inject.Provider<org.apache.ibatis.session.SqlSessionFactory>

@Singleton public final class SqlSessionFactoryProvider extends Object implements jakarta.inject.Provider<org.apache.ibatis.session.SqlSessionFactory>
Builds the SqlSessionFactory ant let google-guice injects his components.
  • Constructor Details

    • SqlSessionFactoryProvider

      public SqlSessionFactoryProvider()
      Since:
      1.0.1
    • SqlSessionFactoryProvider

      @Deprecated public SqlSessionFactoryProvider(org.apache.ibatis.session.Configuration configuration)
      Deprecated.
      Creates a new SqlSessionFactory from the specified configuration.
      Parameters:
      configuration - the specified configration.
  • Method Details

    • createNewSqlSessionFactory

      @Inject public void createNewSqlSessionFactory(org.apache.ibatis.session.Configuration configuration)
      Creates a new SqlSessionFactory from the specified configuration.
      Parameters:
      configuration - the specified configuration.
      Since:
      1.0.1
    • get

      public org.apache.ibatis.session.SqlSessionFactory get()
      Specified by:
      get in interface jakarta.inject.Provider<org.apache.ibatis.session.SqlSessionFactory>