Author: hlship
Date: Wed May 26 00:40:54 2010
New Revision: 948279

URL: http://svn.apache.org/viewvc?rev=948279&view=rev
Log:
TAP5-1170: Fix incorrect injection of service id

Modified:
    
tapestry/tapestry5/trunk/tapestry-hibernate/src/test/java/org/example/app0/services/AppModule.java

Modified: 
tapestry/tapestry5/trunk/tapestry-hibernate/src/test/java/org/example/app0/services/AppModule.java
URL: 
http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/test/java/org/example/app0/services/AppModule.java?rev=948279&r1=948278&r2=948279&view=diff
==============================================================================
--- 
tapestry/tapestry5/trunk/tapestry-hibernate/src/test/java/org/example/app0/services/AppModule.java
 (original)
+++ 
tapestry/tapestry5/trunk/tapestry-hibernate/src/test/java/org/example/app0/services/AppModule.java
 Wed May 26 00:40:54 2010
@@ -4,7 +4,7 @@
 // you may not use this file except in compliance with the License.
 // You may obtain a copy of the License at
 //
-//     http://www.apache.org/licenses/LICENSE-2.0
+// http://www.apache.org/licenses/LICENSE-2.0
 //
 // Unless required by applicable law or agreed to in writing, software
 // distributed under the License is distributed on an "AS IS" BASIS,
@@ -20,6 +20,7 @@ import org.apache.tapestry5.hibernate.Hi
 import org.apache.tapestry5.hibernate.HibernateTransactionDecorator;
 import org.apache.tapestry5.ioc.MappedConfiguration;
 import org.apache.tapestry5.ioc.ServiceBinder;
+import org.apache.tapestry5.ioc.ServiceResources;
 import org.apache.tapestry5.ioc.annotations.Match;
 import org.apache.tapestry5.ioc.annotations.SubModule;
 
@@ -39,9 +40,8 @@ public class AppModule
 
     @Match("*DAO")
     public static <T> T decorateTransactionally(HibernateTransactionDecorator 
decorator, Class<T> serviceInterface,
-                                                T delegate,
-                                                String serviceId)
+            T delegate, ServiceResources resources)
     {
-        return decorator.build(serviceInterface, delegate, serviceId);
+        return decorator.build(serviceInterface, delegate, 
resources.getServiceId());
     }
 }


Reply via email to