summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-11-09 00:56:58 +0000
committerrfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68>2012-11-09 00:56:58 +0000
commita64693274f60cf0497850b3f2625abe4b23fd0e7 (patch)
treef7863c01003f2f82de326d234569118c1cf96e93
parent6f0324ddc93206bd139aad9587ebf81b0913b2a6 (diff)
Call the super constructor to set the parent field
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@1407335 13f79535-47bb-0310-9956-ffa450edef68
-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();
- }
-
}