You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tapestry.apache.org by hl...@apache.org on 2007/03/11 20:15:00 UTC
svn commit: r516993 - in /tapestry/tapestry5/tapestry-hibernate/trunk: ./
src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
Author: hlship
Date: Sun Mar 11 12:14:59 2007
New Revision: 516993
URL: http://svn.apache.org/viewvc?view=rev&rev=516993
Log:
TAPESTRY-1341: Allow service builders named "build" and determine service id from the result type
Modified:
tapestry/tapestry5/tapestry-hibernate/trunk/ (props changed)
tapestry/tapestry5/tapestry-hibernate/trunk/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
Propchange: tapestry/tapestry5/tapestry-hibernate/trunk/
------------------------------------------------------------------------------
--- svn:ignore (original)
+++ svn:ignore Sun Mar 11 12:14:59 2007
@@ -1,3 +1,4 @@
bin
target
temp-testng-customsuite.xml
+cobertura.ser
Modified: tapestry/tapestry5/tapestry-hibernate/trunk/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/tapestry-hibernate/trunk/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java?view=diff&rev=516993&r1=516992&r2=516993
==============================================================================
--- tapestry/tapestry5/tapestry-hibernate/trunk/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java (original)
+++ tapestry/tapestry5/tapestry-hibernate/trunk/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java Sun Mar 11 12:14:59 2007
@@ -37,7 +37,7 @@
* The HibernateSessionSource is responsible for creating Hibernate sessions, which includes the
* initial configuration of Hibernate.
*/
- public static HibernateSessionSource buildHibernateSessionSource(Log log,
+ public static HibernateSessionSource build(Log log,
@InjectService("ComponentClassLocator")
ComponentClassLocator classLocator,
@@ -63,12 +63,11 @@
* is created initially, and is committed at the end of the request.
*/
@Lifecycle("perthread")
- public static HibernateSessionManager buildHibernateSessionManager(
- @InjectService("HibernateSessionSource")
- HibernateSessionSource sessionSource,
+ public static HibernateSessionManager build(@InjectService("HibernateSessionSource")
+ HibernateSessionSource sessionSource,
- @InjectService("ThreadCleanupHub")
- ThreadCleanupHub threadCleanupHub)
+ @InjectService("ThreadCleanupHub")
+ ThreadCleanupHub threadCleanupHub)
{
HibernateSessionManagerImpl service = new HibernateSessionManagerImpl(sessionSource);
@@ -77,7 +76,7 @@
return service;
}
- public static Session buildSession(@InjectService("HibernateSessionManager")
+ public static Session build(@InjectService("HibernateSessionManager")
HibernateSessionManager sessionManager,
@InjectService("PropertyShadowBuilder")