tuscany-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lrese...@apache.org
Subject svn commit: r820516 - in /tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc: JSONRPCBinding.java impl/JSONRPCBindingImpl.java
Date Thu, 01 Oct 2009 03:52:10 GMT
Author: lresende
Date: Thu Oct  1 03:52:10 2009
New Revision: 820516

URL: http://svn.apache.org/viewvc?rev=820516&view=rev
Log:
Porting the JSONRPC model to 2.x + minor cleanups

Modified:
    tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java
    tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java

Modified: tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java?rev=820516&r1=820515&r2=820516&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java
(original)
+++ tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/JSONRPCBinding.java
Thu Oct  1 03:52:10 2009
@@ -19,14 +19,15 @@
 
 package org.apache.tuscany.sca.binding.jsonrpc;
 
+import javax.xml.namespace.QName;
+
 import org.apache.tuscany.sca.assembly.Binding;
-import org.apache.tuscany.sca.policy.PolicySetAttachPoint;
 
 /**
  * A model for the JSONRPC binding.
  * 
  * @version $Rev$ $Date$
  */
-public interface JSONRPCBinding extends Binding, PolicySetAttachPoint {
-
+public interface JSONRPCBinding extends Binding {
+	QName TYPE = new QName(SCA11_TUSCANY_NS, "binding.jsonrpc");
 }

Modified: tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java
URL: http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java?rev=820516&r1=820515&r2=820516&view=diff
==============================================================================
--- tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java
(original)
+++ tuscany/java/sca/modules/binding-jsonrpc/src/main/java/org/apache/tuscany/sca/binding/jsonrpc/impl/JSONRPCBindingImpl.java
Thu Oct  1 03:52:10 2009
@@ -19,12 +19,7 @@
 
 package org.apache.tuscany.sca.binding.jsonrpc.impl;
 
-import java.util.ArrayList;
-import java.util.List;
-
-import org.apache.tuscany.sca.policy.Intent;
-import org.apache.tuscany.sca.policy.IntentAttachPointType;
-import org.apache.tuscany.sca.policy.PolicySet;
+import javax.xml.namespace.QName;
 
 import org.apache.tuscany.sca.binding.jsonrpc.JSONRPCBinding;
 
@@ -37,12 +32,10 @@
     private String name;
     private String uri;
 
-
-    private List<Intent> requiredIntents = new ArrayList<Intent>();
-    private List<PolicySet> policySets = new ArrayList<PolicySet>();
-    private IntentAttachPointType intentAttachPointType;
-    private List<PolicySet> applicablePolicySets = new ArrayList<PolicySet>();
-
+    public QName getType() {
+		return TYPE;
+	}
+    
     public String getName() {
         return name;
     }
@@ -68,36 +61,6 @@
         // The binding is always resolved
     }
 
-    //Policy related getters/setters
-
-    public List<PolicySet> getPolicySets() {
-        return policySets;
-    }
-
-    public List<Intent> getRequiredIntents() {
-        return requiredIntents;
-    }
-
-    public IntentAttachPointType getType() {
-        return intentAttachPointType;
-    }
-
-    public void setType(IntentAttachPointType intentAttachPointType) {
-        this.intentAttachPointType = intentAttachPointType;
-    }
-
-    public void setPolicySets(List<PolicySet> policySets) {
-        this.policySets = policySets;
-    }
-
-    public void setRequiredIntents(List<Intent> intents) {
-        this.requiredIntents = intents;
-    }
-
-    public List<PolicySet> getApplicablePolicySets() {
-        return applicablePolicySets;
-    }
-
     @Override
     public Object clone() throws CloneNotSupportedException {
         return super.clone();



Mime
View raw message