summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/binding-rest-runtime/src
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-08-03 21:24:59 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-08-03 21:24:59 +0000
commit5010de9fe0463ecef8db00ccb6229ec23d947b64 (patch)
tree682759280392dcc4efef8a8d2cd1706c17d203f9 /sca-java-2.x/trunk/modules/binding-rest-runtime/src
parente720311a52f90cc227eecb486cde62bdf040bf98 (diff)
Fix the entity detection
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1369217 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/binding-rest-runtime/src')
-rw-r--r--sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
index 7827092501..9988b34344 100644
--- a/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
+++ b/sca-java-2.x/trunk/modules/binding-rest-runtime/src/main/java/org/apache/tuscany/sca/binding/rest/provider/RESTBindingInvoker.java
@@ -223,7 +223,11 @@ public class RESTBindingInvoker implements Invoker {
isEntity = false;
cookieParams.put(cookieParam.value(), args[i]);
}
- isEntity = (getAnnotation(annotations, Context.class) == null);
+
+ if(getAnnotation(annotations, Context.class) != null) {
+ isEntity = false;
+ }
+
if (isEntity) {
entity = args[i];
}