diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-10-17 12:46:41 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2011-10-17 12:46:41 +0000 |
commit | 5dd0b6ca59173e1011eed91af21df729be1081df (patch) | |
tree | b8b3ea768a5a18cd7b2529f7fbf719d53e0a181e /sca-java-2.x/trunk/modules/assembly/src/main | |
parent | 5d5faccceb78ab2bc806551ba5910de3c5db8f10 (diff) |
Extend getIntent to retrieve qualified intents as well as top level intents
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1185132 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/assembly/src/main')
-rw-r--r-- | sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHelper.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHelper.java b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHelper.java index ade541b635..d153e50149 100644 --- a/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHelper.java +++ b/sca-java-2.x/trunk/modules/assembly/src/main/java/org/apache/tuscany/sca/policy/util/PolicyHelper.java @@ -51,6 +51,11 @@ public class PolicyHelper { if (i.getName().equals(intentName)) { return i; } + for (Intent qualifiedIntent : i.getQualifiedIntents()){ + if (qualifiedIntent.getName().equals(intentName)) { + return qualifiedIntent; + } + } } return null; } |