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:
parent
6f0324ddc9
commit
a64693274f
1 changed files with 2 additions and 5 deletions
|
|
@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue