Author: lresende
Date: Wed Mar  4 23:27:14 2009
New Revision: 750226

URL: http://svn.apache.org/viewvc?rev=750226&view=rev
Log:
Minor cleanup to binding-sca and updates to use OASIS namespace

Modified:
    
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/DistributedSCABinding.java
    
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/DistributedSCABindingImpl.java
    
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java
    
tuscany/java/sca/modules/binding-sca/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml
    tuscany/java/sca/modules/binding-sca/src/test/resources/Calculator.composite

Modified: 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/DistributedSCABinding.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/DistributedSCABinding.java?rev=750226&r1=750225&r2=750226&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/DistributedSCABinding.java
 (original)
+++ 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/DistributedSCABinding.java
 Wed Mar  4 23:27:14 2009
@@ -31,7 +31,16 @@
  */
 public interface DistributedSCABinding extends Binding {
     
+       /**
+        * Return the wrapped SCA binding
+        * @return the SCA binding model element
+        */
     SCABinding getSCABinding();
+    
+    /**
+     * Set the wrapped SCA binding
+     * @param scaBinding the SCA binding model element
+     */
     void setSCABinding(SCABinding scaBinding);
 
 }

Modified: 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/DistributedSCABindingImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/DistributedSCABindingImpl.java?rev=750226&r1=750225&r2=750226&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/DistributedSCABindingImpl.java
 (original)
+++ 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/DistributedSCABindingImpl.java
 Wed Mar  4 23:27:14 2009
@@ -32,85 +32,39 @@
     
     private SCABinding scaBinding;
     
-    /**
-     * Getter for the wrapped sca binding model object
-     * 
-     * @return the sca binding model element
-     */
     public SCABinding getSCABinding(){
         return scaBinding;
     }
     
-    /**
-     * Setter for the wrapped sca binding model element
-     * 
-     * @param scaBinding the sca binding model element
-     */
     public void setSCABinding(SCABinding scaBinding){
         this.scaBinding = scaBinding;
     }
-
-    
-    // Operation implementations provided to make this class a 
-    // valid Binding
     
-    /**
-     * Returns the binding URI.
-     * 
-     * @return the binding URI
-     */
     public String getURI(){
         return null;
     }
 
-    /**
-     * Sets the binding URI.
-     * 
-     * @param uri the binding URI
-     */
     public void setURI(String uri){
     }
 
-    /**
-     * Returns the binding name.
-     * 
-     * @return the binding name
-     */
     public String getName(){
         return null;
     }
 
-    /**
-     * Sets the binding name.
-     * 
-     * @param name the binding name
-     */
     public void setName(String name){
+
     }
     
-    /**
-     * Returns true if the model element is unresolved.
-     * 
-     * @return true if the model element is unresolved.
-     */
     public boolean isUnresolved(){
         return false;
     }
 
-    /**
-     * Sets whether the model element is unresolved.
-     * 
-     * @param unresolved whether the model element is unresolved
-     */
     public void setUnresolved(boolean unresolved){
+
     }
     
-    /**
-     * Clone the binding
-     */
     @Override
     public Object clone() throws CloneNotSupportedException {
         return super.clone();
     }     
-
 }

Modified: 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java?rev=750226&r1=750225&r2=750226&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java
 (original)
+++ 
tuscany/java/sca/modules/binding-sca/src/main/java/org/apache/tuscany/sca/binding/sca/impl/SCABindingImpl.java
 Wed Mar  4 23:27:14 2009
@@ -65,24 +65,10 @@
     protected SCABindingImpl() {
     }
     
-    // SCA Binding operations
-    
-    /**
-     * Setters for the binding name. Defaults to the
-     * name of the service or reference with which the binding is
-     * associated
-     * 
-     * @return the binding name
-     */
     public String getName() {
         return name;
     }
     
-    /**
-     * Setter for the binding name
-     * 
-     * @param name the binding name
-     */
     public void setName(String name) {
         this.name = name;
     }
@@ -99,11 +85,6 @@
         return uri;
     }
 
-    /**
-     * Setter for the binding URI
-     * 
-     * @param uri the binding URI
-     */
     public void setURI(String uri) {
         this.uri = uri;
     }
@@ -116,12 +97,6 @@
         return attributeExtensions;
     }
     
-    
-    /**
-     * Returns true if the model element is unresolved.
-     * 
-     * @return true if the model element is unresolved.
-     */
     public boolean isUnresolved() {
         if (targetComponentService == null){
             return true;
@@ -129,23 +104,10 @@
             return targetComponentService.isUnresolved();
         }
     }
-    
-    /**
-     * Sets whether the model element is unresolved.
-     * 
-     * @param unresolved whether the model element is unresolved
-     */    
+
     public void setUnresolved(boolean unresolved) {
     }
 
-    /**
-     * @see java.lang.Object#clone()
-     */
-    @Override
-    public Object clone() throws CloneNotSupportedException {
-        return super.clone();
-    }
-    
     public List<PolicySet> getPolicySets() {
         return policySets;
     }
@@ -164,44 +126,26 @@
     
     // Wireable binding operations
 
-    /**
-     * @return the targetComponent
-     */
     public Component getTargetComponent() {
         return targetComponent;
     }
 
-    /**
-     * @param targetComponent the targetComponent to set
-     */
     public void setTargetComponent(Component targetComponent) {
         this.targetComponent = targetComponent;
     }
 
-    /**
-     * @return the targetComponentService
-     */
     public ComponentService getTargetComponentService() {
         return targetComponentService;
     }
 
-    /**
-     * @param targetComponentService the targetComponentService to set
-     */
     public void setTargetComponentService(ComponentService 
targetComponentService) {
         this.targetComponentService = targetComponentService;
     }
 
-    /**
-     * @return the targetBinding
-     */
     public Binding getTargetBinding() {
         return targetBinding;
     }
 
-    /**
-     * @param targetBinding the targetBinding to set
-     */
     public void setTargetBinding(Binding targetBinding) {
         this.targetBinding = targetBinding;
     }
@@ -213,7 +157,6 @@
     public void setRequiredIntents(List<Intent> intents) {
         this.requiredIntents = intents;
     }
-    
 
     public void setIsAutomatic(boolean isAutomatic){
         this.isAutomatic = isAutomatic;
@@ -222,4 +165,9 @@
     public boolean getIsAutomatic(){
         return this.isAutomatic;
     }
+
+    @Override
+    public Object clone() throws CloneNotSupportedException {
+        return super.clone();
+    }    
 }

Modified: 
tuscany/java/sca/modules/binding-sca/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-sca/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml?rev=750226&r1=750225&r2=750226&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/binding-sca/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml
 (original)
+++ 
tuscany/java/sca/modules/binding-sca/src/main/resources/org/apache/tuscany/sca/binding/sca/definitions.xml
 Wed Mar  4 23:27:14 2009
@@ -20,7 +20,7 @@
 <sca:definitions xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200712";
                        
targetNamespace="http://docs.oasis-open.org/ns/opencsa/sca/200712";
                        
xmlns:sca="http://docs.oasis-open.org/ns/opencsa/sca/200712";
-                       xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0";>
+                       xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.1";>
                        
        <sca:bindingType type="sca:binding.sca"  mayProvide="" 
alwaysProvides=""/>                      
  </sca:definitions>
\ No newline at end of file

Modified: 
tuscany/java/sca/modules/binding-sca/src/test/resources/Calculator.composite
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/binding-sca/src/test/resources/Calculator.composite?rev=750226&r1=750225&r2=750226&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/binding-sca/src/test/resources/Calculator.composite 
(original)
+++ 
tuscany/java/sca/modules/binding-sca/src/test/resources/Calculator.composite 
Wed Mar  4 23:27:14 2009
@@ -17,7 +17,7 @@
  * specific language governing permissions and limitations
  * under the License.    
 -->
-<composite xmlns="http://www.osoa.org/xmlns/sca/1.0";
+<composite xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200712";
     xmlns:calc="http://calc";
     targetNamespace="http://calc";
     name="Calculator">


Reply via email to