rave-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mfrank...@apache.org
Subject svn commit: r1151249 - /incubator/rave/trunk/rave-shindig/src/main/java/org/apache/rave/inject/SpringBindingModule.java
Date Tue, 26 Jul 2011 21:08:10 GMT
Author: mfranklin
Date: Tue Jul 26 21:08:09 2011
New Revision: 1151249

URL: http://svn.apache.org/viewvc?rev=1151249&view=rev
Log:
Fixed potential bug where the scope of a bean requested from the application context is not
a singleton (Supports RAVE-121)

Modified:
    incubator/rave/trunk/rave-shindig/src/main/java/org/apache/rave/inject/SpringBindingModule.java

Modified: incubator/rave/trunk/rave-shindig/src/main/java/org/apache/rave/inject/SpringBindingModule.java
URL: http://svn.apache.org/viewvc/incubator/rave/trunk/rave-shindig/src/main/java/org/apache/rave/inject/SpringBindingModule.java?rev=1151249&r1=1151248&r2=1151249&view=diff
==============================================================================
--- incubator/rave/trunk/rave-shindig/src/main/java/org/apache/rave/inject/SpringBindingModule.java
(original)
+++ incubator/rave/trunk/rave-shindig/src/main/java/org/apache/rave/inject/SpringBindingModule.java
Tue Jul 26 21:08:09 2011
@@ -59,7 +59,7 @@ public class SpringBindingModule extends
         String fullClassName = Proxy.isProxyClass(bean.getClass()) ? bean.toString() : bean.getClass().getName();
         if (fullClassName.matches(basePackage + ".*")) {
             for (final Class clazz : bean.getClass().getInterfaces()) {
-                bind(clazz).toInstance(new Provider() {
+                bind(clazz).toProvider(new Provider() {
                     @Override
                     public Object get() {
                         return applicationContext.getBean(clazz);



Mime
View raw message