diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-22 06:25:10 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2010-06-22 06:25:10 +0000 |
commit | 3c8f9cacea1d246cd0e96b4a52984b62d1a3859e (patch) | |
tree | 3088dd5fc82832ed372a3971bc086c9d25946971 /sca-java-2.x/trunk/modules | |
parent | 98e58a4d278e3367051f2f450314f54aabfc421d (diff) |
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
Diffstat (limited to 'sca-java-2.x/trunk/modules')
4 files changed, 27 insertions, 14 deletions
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 @@ <dependency> <groupId>org.springframework</groupId> <artifactId>spring-core</artifactId> - <version>2.5.6</version> + <version>3.0.2.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-beans</artifactId> - <version>2.5.6</version> + <version>3.0.2.RELEASE</version> </dependency> <dependency> <groupId>org.springframework</groupId> <artifactId>spring-context</artifactId> - <version>2.5.6</version> + <version>3.0.2.RELEASE</version> </dependency> </dependencies> 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> T getBean(Class<T> clazz) throws BeansException { + return clazz.cast(implementation.getBean(clazz.getName(), clazz)); + } + + public Map<String, Object> getBeansWithAnnotation(Class<? extends Annotation> clazz) throws BeansException { + return null; + } + + public <A extends Annotation> A findAnnotationOnBean(String arg0, Class<A> 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() { |