tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sl...@apache.org
Subject svn commit: r1124749 - in /tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet: META-INF/MANIFEST.MF src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
Date Thu, 19 May 2011 13:27:06 GMT
Author: slaws
Date: Thu May 19 13:27:06 2011
New Revision: 1124749

URL: http://svn.apache.org/viewvc?rev=1124749&view=rev
Log:
Make the comet binding a policy subject. Helping get Florian unstuck. 

Modified:
    tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF
    tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java

Modified: tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF?rev=1124749&r1=1124748&r2=1124749&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF (original)
+++ tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/META-INF/MANIFEST.MF Thu May
19 13:27:06 2011
@@ -11,7 +11,8 @@ Bundle-Description: Apache Tuscany SCA C
 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

Modified: tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
URL: http://svn.apache.org/viewvc/tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java?rev=1124749&r1=1124748&r2=1124749&view=diff
==============================================================================
--- tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
(original)
+++ tuscany/sca-java-2.x/trunk/unreleased/modules/binding-comet/src/main/java/org/apache/tuscany/sca/binding/comet/impl/CometBindingImpl.java
Thu May 19 13:27:06 2011
@@ -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
     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;
+    }
 }



Mime
View raw message