diff options
author | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-05 00:42:39 +0000 |
---|---|---|
committer | slaws <slaws@13f79535-47bb-0310-9956-ffa450edef68> | 2008-07-05 00:42:39 +0000 |
commit | 4cdaad597f90ca9ed6abadd3bfcc50f29c928c88 (patch) | |
tree | c67fc425f8a8f28d75b07f89001397f68edd05e5 /branches/sca-java-1.3/modules/binding-sca | |
parent | 2f28a8f788075a95f05ae828ad8f37b8e2f3eed4 (diff) |
TUSCANY-2352 - upgrade the fix for promoted binding overriding as the automatically created sca bindings were causing the top level to always override.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@674142 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'branches/sca-java-1.3/modules/binding-sca')
-rw-r--r-- | branches/sca-java-1.3/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/branches/sca-java-1.3/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java b/branches/sca-java-1.3/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java index 3c5509eaa6..c93ddd9503 100644 --- a/branches/sca-java-1.3/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java +++ b/branches/sca-java-1.3/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java @@ -27,6 +27,7 @@ import org.apache.tuscany.sca.assembly.ComponentService; import org.apache.tuscany.sca.assembly.Extensible; import org.apache.tuscany.sca.assembly.OptimizableBinding; import org.apache.tuscany.sca.assembly.SCABinding; +import org.apache.tuscany.sca.assembly.builder.AutomaticBinding; import org.apache.tuscany.sca.policy.Intent; import org.apache.tuscany.sca.policy.IntentAttachPointType; import org.apache.tuscany.sca.policy.PolicySet; @@ -37,7 +38,7 @@ import org.apache.tuscany.sca.policy.PolicySetAttachPoint; * * @version $Rev$ $Date$ */ -public class SCABindingImpl implements SCABinding, Extensible, PolicySetAttachPoint, OptimizableBinding { +public class SCABindingImpl implements SCABinding, Extensible, PolicySetAttachPoint, OptimizableBinding, AutomaticBinding { private String name; private String uri; private List<Object> extensions = new ArrayList<Object>(); @@ -50,6 +51,8 @@ public class SCABindingImpl implements SCABinding, Extensible, PolicySetAttachPo private Binding targetBinding; private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>(); + private boolean isAutomatic = false; + public List<PolicySet> getApplicablePolicySets() { return applicablePolicySets; } @@ -208,4 +211,13 @@ public class SCABindingImpl implements SCABinding, Extensible, PolicySetAttachPo public void setRequiredIntents(List<Intent> intents) { this.requiredIntents = intents; } + + + public void setIsAutomatic(boolean isAutomatic){ + this.isAutomatic = isAutomatic; + } + + public boolean getIsAutomatic(){ + return this.isAutomatic; + } } |