summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java
diff options
context:
space:
mode:
authorlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-06-22 06:25:10 +0000
committerlresende <lresende@13f79535-47bb-0310-9956-ffa450edef68>2010-06-22 06:25:10 +0000
commit3c8f9cacea1d246cd0e96b4a52984b62d1a3859e (patch)
tree3088dd5fc82832ed372a3971bc086c9d25946971 /sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java
parent98e58a4d278e3367051f2f450314f54aabfc421d (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/implementation-spring-sca/src/main/java')
-rw-r--r--sca-java-2.x/trunk/modules/implementation-spring-sca/src/main/java/org/apache/tuscany/sca/implementation/spring/runtime/context/SCAParentApplicationContext.java13
1 files changed, 13 insertions, 0 deletions
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;