tapestry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r548175 - /tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
Date Mon, 18 Jun 2007 02:49:52 GMT
Author: hlship
Date: Sun Jun 17 19:49:51 2007
New Revision: 548175

URL: http://svn.apache.org/viewvc?view=rev&rev=548175
Log:
TAPESTRY-1480: Implement Radio component

Modified:
    tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java

Modified: tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java?view=diff&rev=548175&r1=548174&r2=548175
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-hibernate/src/main/java/org/apache/tapestry/hibernate/HibernateModule.java
Sun Jun 17 19:49:51 2007
@@ -16,16 +16,18 @@
 
 import static org.apache.tapestry.ioc.IOCConstants.PERTHREAD_SCOPE;
 
+import org.apache.tapestry.internal.InternalConstants;
 import org.apache.tapestry.internal.hibernate.HibernateSessionManagerImpl;
 import org.apache.tapestry.internal.hibernate.HibernateSessionSourceImpl;
 import org.apache.tapestry.ioc.Configuration;
 import org.apache.tapestry.ioc.ServiceBinder;
+import org.apache.tapestry.ioc.annotations.Inject;
 import org.apache.tapestry.ioc.annotations.InjectService;
 import org.apache.tapestry.ioc.annotations.Scope;
+import org.apache.tapestry.ioc.annotations.Symbol;
 import org.apache.tapestry.ioc.services.PropertyShadowBuilder;
 import org.apache.tapestry.ioc.services.ThreadCleanupHub;
 import org.apache.tapestry.services.AliasContribution;
-import org.apache.tapestry.services.ApplicationGlobals;
 import org.hibernate.Session;
 import org.hibernate.Transaction;
 
@@ -41,9 +43,12 @@
      * scanned for annotated entity classes.
      */
     public static void contributeHibernateSessionSource(Configuration<String> configuration,
-            ApplicationGlobals globals)
+
+    @Inject
+    @Symbol(InternalConstants.TAPESTRY_APP_PACKAGE_PARAM)
+    String appRootPackage)
     {
-        configuration.add(globals.getApplicationRootPackage() + ".entities");
+        configuration.add(appRootPackage + ".entities");
     }
 
     /**



Mime
View raw message