From 3c8f9cacea1d246cd0e96b4a52984b62d1a3859e Mon Sep 17 00:00:00 2001 From: lresende Date: Tue, 22 Jun 2010 06:25:10 +0000 Subject: TUSCANY-3605 - Moving Spring dependency to 3.0.2.RELEASE git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@956786 13f79535-47bb-0310-9956-ffa450edef68 --- .../implementation-spring-sca/META-INF/MANIFEST.MF | 20 ++++++++++---------- .../trunk/modules/implementation-spring-sca/pom.xml | 6 +++--- .../runtime/context/SCAParentApplicationContext.java | 13 +++++++++++++ .../spring/invocation/SpringImplementationTie.java | 2 +- 4 files changed, 27 insertions(+), 14 deletions(-) (limited to 'sca-java-2.x/trunk/modules') diff --git a/sca-java-2.x/trunk/modules/implementation-spring-sca/META-INF/MANIFEST.MF b/sca-java-2.x/trunk/modules/implementation-spring-sca/META-INF/MANIFEST.MF index 3d2fe4bcbd..4a228362df 100644 --- a/sca-java-2.x/trunk/modules/implementation-spring-sca/META-INF/MANIFEST.MF +++ b/sca-java-2.x/trunk/modules/implementation-spring-sca/META-INF/MANIFEST.MF @@ -11,14 +11,14 @@ Bundle-DocURL: http://www.apache.org/ Bundle-RequiredExecutionEnvironment: J2SE-1.5,JavaSE-1.6 Import-Package: org.oasisopen.sca;version="2.0.0", org.oasisopen.sca.annotation;version="2.0.0", - org.springframework.beans;version="2.5.6", - org.springframework.beans.factory;version="2.5.6", - org.springframework.beans.factory.annotation;version="2.5.6", - org.springframework.beans.factory.config;version="2.5.6", - org.springframework.beans.factory.support;version="2.5.6", - org.springframework.beans.factory.xml;version="2.5.6", - org.springframework.context;version="2.5.6", - org.springframework.context.support;version="2.5.6", - org.springframework.core.io;version="2.5.6", - org.springframework.util;version="2.5.6" + org.springframework.beans;version="3.0.2.RELEASE", + org.springframework.beans.factory;version="3.0.2.RELEASE", + org.springframework.beans.factory.annotation;version="3.0.2.RELEASE", + org.springframework.beans.factory.config;version="3.0.2.RELEASE", + org.springframework.beans.factory.support;version="3.0.2.RELEASE", + org.springframework.beans.factory.xml;version="3.0.2.RELEASE", + org.springframework.context;version="3.0.2.RELEASE", + org.springframework.context.support;version="3.0.2.RELEASE", + org.springframework.core.io;version="3.0.2.RELEASE", + org.springframework.util;version="3.0.2.RELEASE" diff --git a/sca-java-2.x/trunk/modules/implementation-spring-sca/pom.xml b/sca-java-2.x/trunk/modules/implementation-spring-sca/pom.xml index 86ea9f9a63..60ee50a890 100644 --- a/sca-java-2.x/trunk/modules/implementation-spring-sca/pom.xml +++ b/sca-java-2.x/trunk/modules/implementation-spring-sca/pom.xml @@ -51,19 +51,19 @@ org.springframework spring-core - 2.5.6 + 3.0.2.RELEASE org.springframework spring-beans - 2.5.6 + 3.0.2.RELEASE org.springframework spring-context - 2.5.6 + 3.0.2.RELEASE diff --git a/sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java b/sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java index 5ea1c2fd9d..36f1f6d761 100644 --- a/sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java +++ b/sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java @@ -19,6 +19,7 @@ package org.apache.tuscany.sca.implementation.spring.runtime.context; import java.io.IOException; +import java.lang.annotation.Annotation; import java.util.Locale; import java.util.Map; @@ -75,6 +76,18 @@ class SCAParentApplicationContext implements ApplicationContext { return getBean(name, ((Class)null)); } + public T getBean(Class clazz) throws BeansException { + return clazz.cast(implementation.getBean(clazz.getName(), clazz)); + } + + public Map getBeansWithAnnotation(Class clazz) throws BeansException { + return null; + } + + public A findAnnotationOnBean(String arg0, Class clazz) { + return null; + } + public boolean containsBean(String name) { // TODO return false; diff --git a/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java b/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java index 6caa5207e4..a65db51449 100644 --- a/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java +++ b/sca-java-2.x/trunk/modules/implementation-spring/src/main/java/org/apache/tuscany/sca/implementation/spring/invocation/SpringImplementationTie.java @@ -50,7 +50,7 @@ public class SpringImplementationTie { } public String getURI() { - throw new IllegalStateException("Not yet impl"); + return implementation.getURI(); } public String getComponentName() { -- cgit v1.2.3