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
This commit is contained in:
rfeng 2012-11-09 00:56:58 +00:00
commit a64693274f

View file

@ -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();
}
}