diff options
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();
+ }
}
|