summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sca-java-2.x/trunk/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/context/SCAParentApplicationContext.java7
1 files changed, 2 insertions, 5 deletions
diff --git a/sca-java-2.x/trunk/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/context/SCAParentApplicationContext.java b/sca-java-2.x/trunk/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/context/SCAParentApplicationContext.java
index dc3f811558..99f58a7933 100644
--- a/sca-java-2.x/trunk/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/context/SCAParentApplicationContext.java
+++ b/sca-java-2.x/trunk/modules/implementation-spring-runtime/src/main/java/org/apache/tuscany/sca/implementation/spring/context/SCAParentApplicationContext.java
@@ -56,9 +56,11 @@ public class SCAParentApplicationContext extends GenericApplicationContext imple
private static final String[] EMPTY_ARRAY = new String[0];
public SCAParentApplicationContext(SpringImplementationWrapper implementation) {
+ super(implementation.getParentApplicationContext());
this.implementation = implementation;
} // end constructor
+
public Object getBean(String name) throws BeansException {
return getBean(name, (Class)null);
}
@@ -206,9 +208,4 @@ public class SCAParentApplicationContext extends GenericApplicationContext imple
return this.getClass().getClassLoader();
}
- @Override
- public ApplicationContext getParent() {
- return implementation.getParentApplicationContext();
- }
-
}