Author: antelder
Date: Fri May  1 16:27:17 2009
New Revision: 770743

URL: http://svn.apache.org/viewvc?rev=770743&view=rev
Log:
Compelete a bit more of the spring impl refactor

Modified:
    
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
    
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java

Modified: 
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java?rev=770743&r1=770742&r2=770743&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
 (original)
+++ 
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
 Fri May  1 16:27:17 2009
@@ -66,11 +66,11 @@
 
             Class<?> tieClass = 
Class.forName("org.apache.tuscany.sca.implementation.spring.runtime.context.SpringContextTie",
 true, cl);
             Constructor<?> tieConstructor = tieClass.getConstructor(new 
Class<?>[]{stubClass, URL.class});
-            this.tie = tieConstructor.newInstance(stub,null);
+            this.tie = tieConstructor.newInstance(stub, 
implementation.getResource());
             
             this.startMethod = tieClass.getMethod("start");
             this.closeMethod = tieClass.getMethod("close");
-            this.getBeanMethod = tieClass.getMethod("getBean");
+            this.getBeanMethod = tieClass.getMethod("getBean", String.class);
 
         } catch (ClassNotFoundException e) {
             throw new RuntimeException(e);

Modified: 
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java
URL: 
http://svn.apache.org/viewvc/tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java?rev=770743&r1=770742&r2=770743&view=diff
==============================================================================
--- 
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java
 (original)
+++ 
tuscany/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java
 Fri May  1 16:27:17 2009
@@ -50,10 +50,12 @@
     }
     
     public String getURI() {
-        // TODO Auto-generated method stub
-        return null;
+        throw new IllegalStateException("Not yet impl");
     }
 
+    public String getComponentName() {
+        return component.getName();
+    }
     /**
      * Method to create a Java Bean for a Property value
      * @param <B> the class type of the Bean
@@ -130,5 +132,13 @@
         throw new RuntimeException("Unable to find Bean with name " + name);
 
     } // end method getBean( String, Class )
+    
+    public Object getComponentTie() {
+        return new ComponentTie();
+    }
+    
 
+    public Object getPropertyValueTie() {
+        return new PropertyValueTie();
+    }
 }


Reply via email to