From a64693274f60cf0497850b3f2625abe4b23fd0e7 Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 9 Nov 2012 00:56:58 +0000 Subject: 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 --- .../implementation/spring/context/SCAParentApplicationContext.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sca-java-2.x/trunk') 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(); - } - } -- cgit v1.2.3