org.mybatis.guice.session
Class SqlSessionFactoryProvider

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

@Singleton
public final class SqlSessionFactoryProvider
extends Object
implements javax.inject.Provider<org.apache.ibatis.session.SqlSessionFactory>

Builds the SqlSessionFactory ant let google-guice injects his components.

Version:
$Id: SqlSessionFactoryProvider.java 3605 2011-01-28 15:24:32Z simone.tripodi $

Constructor Summary
SqlSessionFactoryProvider()
           
SqlSessionFactoryProvider(org.apache.ibatis.session.Configuration configuration)
          Deprecated. 
 
Method Summary
 void createNewSqlSessionFactory(org.apache.ibatis.session.Configuration configuration)
          Creates a new SqlSessionFactory from the specified configuration.
 org.apache.ibatis.session.SqlSessionFactory get()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

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 javax.inject.Provider<org.apache.ibatis.session.SqlSessionFactory>


Copyright © 2010-2011 MyBatis.org. All Rights Reserved.