summaryrefslogtreecommitdiffstats
path: root/java/sca
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-05-01 16:27:17 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2009-05-01 16:27:17 +0000
commit86bf4d8bcf9996fae8781ee9c80f943199ee3229 (patch)
treee3713fa1afa5c58a16db768d6248e1fb2fe375da /java/sca
parent61e489ef7f24bcfd74ccdca798eb155c62ccd654 (diff)
Compelete a bit more of the spring impl refactor
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@770743 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r--java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java4
-rw-r--r--java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java14
2 files changed, 14 insertions, 4 deletions
diff --git a/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java b/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
index c120545478..3d8d4112f0 100644
--- a/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
+++ b/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringContextStub.java
@@ -66,11 +66,11 @@ public class SpringContextStub {
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);
diff --git a/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java b/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java
index 6183bf02dc..cf98440903 100644
--- a/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java
+++ b/java/sca/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java
@@ -50,10 +50,12 @@ public class SpringImplementationTie {
}
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 @@ public class SpringImplementationTie {
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();
+ }
}