summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
authorslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-05-19 13:27:06 +0000
committerslaws <slaws@13f79535-47bb-0310-9956-ffa450edef68>2011-05-19 13:27:06 +0000
commitcc86b2bb748c5be20008046fba1b50ddbe9e0f8f (patch)
tree6855a674b12f2e5eaed6836eaa1929ecdbcaccb4 /sca-java-2.x/trunk
parentd3c3c29329142b6f05b22c141ae616bb42c773ed (diff)
Make the comet binding a policy subject. Helping get Florian unstuck.
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1124749 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk')
-rw-r--r--sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF3
-rw-r--r--sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java32
2 files changed, 33 insertions, 2 deletions
diff --git a/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF
index 7818717837..8773b09d04 100644
--- a/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF
+++ b/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF
@@ -11,7 +11,8 @@ Bundle-Description: Apache Tuscany SCA Comet Binding Model
Import-Package: javax.xml.namespace,
org.apache.tuscany.sca.assembly;version="2.0.0",
org.apache.tuscany.sca.assembly.xml;version="2.0.0",
- org.apache.tuscany.sca.binding.comet;version="2.0.0"
+ org.apache.tuscany.sca.binding.comet;version="2.0.0",
+ org.apache.tuscany.sca.policy;version="2.0.0"
Bundle-SymbolicName: org.apache.tuscany.sca.binding.comet
Bundle-DocURL: http://www.apache.org/
Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6
diff --git a/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java b/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
index 65ca2a9d47..f843008415 100644
--- a/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
+++ b/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
@@ -18,19 +18,30 @@
*/
package org.apache.tuscany.sca.binding.comet.impl;
+import java.util.ArrayList;
+import java.util.List;
+
import javax.xml.namespace.QName;
import org.apache.tuscany.sca.assembly.OperationSelector;
import org.apache.tuscany.sca.assembly.WireFormat;
import org.apache.tuscany.sca.binding.comet.CometBinding;
+import org.apache.tuscany.sca.policy.ExtensionType;
+import org.apache.tuscany.sca.policy.Intent;
+import org.apache.tuscany.sca.policy.PolicySet;
+import org.apache.tuscany.sca.policy.PolicySubject;
/**
* Represents a binding through Comet to a service.
*/
-public class CometBindingImpl implements CometBinding {
+public class CometBindingImpl implements CometBinding, PolicySubject {
private String name;
private String uri;
+
+ private List<Intent> requiredIntents = new ArrayList<Intent>();
+ private List<PolicySet> policySets = new ArrayList<PolicySet>();
+ private ExtensionType extensionType;
@Override
public String getName() {
@@ -98,4 +109,23 @@ public class CometBindingImpl implements CometBinding {
public void setOperationSelector(final OperationSelector operationSelector) {
}
+ @Override
+ public ExtensionType getExtensionType() {
+ return extensionType;
+ }
+
+ @Override
+ public void setExtensionType(ExtensionType intentAttachPointType) {
+ this.extensionType = intentAttachPointType;
+ }
+
+ @Override
+ public List<PolicySet> getPolicySets() {
+ return policySets;
+ }
+
+ @Override
+ public List<Intent> getRequiredIntents() {
+ return requiredIntents;
+ }
}