Package org.mybatis.guice.session
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 Summary
ConstructorDescriptionSqlSessionFactoryProvider
(org.apache.ibatis.session.Configuration configuration) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoid
createNewSqlSessionFactory
(org.apache.ibatis.session.Configuration configuration) Creates a new SqlSessionFactory from the specified configuration.org.apache.ibatis.session.SqlSessionFactory
get()
-
Constructor Details
-
SqlSessionFactoryProvider
public SqlSessionFactoryProvider()- Since:
- 1.0.1
-
SqlSessionFactoryProvider
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 interfacejakarta.inject.Provider<org.apache.ibatis.session.SqlSessionFactory>
-