tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hls...@apache.org
Subject svn commit: r572396 - /tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org/apache/tapestry/internal/spring/SpringModuleDef.java
Date Mon, 03 Sep 2007 17:59:58 GMT
Author: hlship
Date: Mon Sep  3 10:59:58 2007
New Revision: 572396

URL: http://svn.apache.org/viewvc?rev=572396&view=rev
Log:
TAPESTRY-1631: tapestry-spring initializes lazy-init beans too soon

Modified:
    tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org/apache/tapestry/internal/spring/SpringModuleDef.java

Modified: tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org/apache/tapestry/internal/spring/SpringModuleDef.java
URL: http://svn.apache.org/viewvc/tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org/apache/tapestry/internal/spring/SpringModuleDef.java?rev=572396&r1=572395&r2=572396&view=diff
==============================================================================
--- tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org/apache/tapestry/internal/spring/SpringModuleDef.java
(original)
+++ tapestry/tapestry5/trunk/tapestry-spring/src/main/java/org/apache/tapestry/internal/spring/SpringModuleDef.java
Mon Sep  3 10:59:58 2007
@@ -57,6 +57,11 @@
                     return _context.getBean(beanName);
                 }
 
+                private Class getBeanType()
+                {
+                    return _context.getType(beanName);
+                }
+
                 public ObjectCreator createServiceCreator(ServiceBuilderResources resources)
                 {
                     return new ObjectCreator()
@@ -75,7 +80,7 @@
 
                 public Class getServiceInterface()
                 {
-                    return getBean().getClass();
+                    return getBeanType();
                 }
 
                 public String getServiceScope()



Mime
View raw message