commit | f8bb825e379711567d7b2505650b5abea9cb4735 | [log] [tgz] |
---|---|---|
author | Zhaohui Feng <rfeng@apache.org> | Sun Apr 22 07:02:19 2012 +0000 |
committer | Zhaohui Feng <rfeng@apache.org> | Sun Apr 22 07:02:19 2012 +0000 |
tree | 8ba9452932ab79843c47c256a669f7b4c006a1de | |
parent | ceb5d68ce5d26f490031a96af2f4f24bcb494e36 [diff] |
Allow the injected context proxy to use context resolvers git-svn-id: https://svn.apache.org/repos/asf/incubator/wink/trunk@1328805 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java b/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java index 4c57d0d..48b03a5 100644 --- a/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java +++ b/wink-common/src/main/java/org/apache/wink/common/internal/registry/ContextAccessor.java
@@ -107,8 +107,8 @@ } // 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);