From: <tu...@us...> - 2006-02-07 20:42:49
|
Update of /cvsroot/hibernate/Hibernate3/src/org/hibernate/impl In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv813/src/org/hibernate/impl Modified Files: SessionFactoryImpl.java Log Message: Added "managed" option for current_session_context_class Index: SessionFactoryImpl.java =================================================================== RCS file: /cvsroot/hibernate/Hibernate3/src/org/hibernate/impl/SessionFactoryImpl.java,v retrieving revision 1.104 retrieving revision 1.105 diff -u -d -r1.104 -r1.105 --- SessionFactoryImpl.java 1 Feb 2006 19:58:27 -0000 1.104 +++ SessionFactoryImpl.java 7 Feb 2006 20:42:41 -0000 1.105 @@ -36,6 +36,7 @@ import org.hibernate.context.CurrentSessionContext; import org.hibernate.context.ThreadLocalSessionContext; import org.hibernate.context.JTASessionContext; +import org.hibernate.context.ManagedSessionContext; import org.hibernate.cache.Cache; import org.hibernate.cache.CacheConcurrencyStrategy; import org.hibernate.cache.CacheFactory; @@ -945,6 +946,9 @@ else if ( "thread".equals( impl ) ) { return new ThreadLocalSessionContext( this ); } + else if ( "managed".equals( impl ) ) { + return new ManagedSessionContext( this ); + } else { try { Class implClass = ReflectHelper.classForName( impl ); |