summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk
diff options
context:
space:
mode:
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;
+ }
}