You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wink.apache.org by rf...@apache.org on 2012/04/22 09:02:20 UTC

svn commit: r1328805 - /incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java

Author: rfeng
Date: Sun Apr 22 07:02:19 2012
New Revision: 1328805

URL: http://svn.apache.org/viewvc?rev=1328805&view=rev
Log:
Allow the injected context proxy to use context resolvers

Modified:
    incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java

Modified: incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java
URL: http://svn.apache.org/viewvc/incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java?rev=1328805&r1=1328804&r2=1328805&view=diff
==============================================================================
--- incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java (original)
+++ incubator/wink/trunk/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java Sun Apr 22 07:02:19 2012
@@ -107,8 +107,8 @@ public class ContextAccessor {
                                               }
                                               // get the real context from the
                                               // RuntimeContext
-                                              Object context =
-                                                  runtimeContext.getAttribute(contextClass);
+                                              // We need to call getContext() instead of getContextFromAccessor() as some context will be created from the context resolvers
+                                              Object context = getContext(contextClass, runtimeContext);
                                               // invoke the method on the real
                                               // context
                                               return method.invoke(context, args);