setProperty((String) key, aProperties.getProperty((String) key));
}
}
-
- public Scope start() {
- return super.start(new DefaultScope(new ProvidedInterface[0]));
- }
@Override
protected Scope doStart(Scope aExternalScope) {
registerRequiredServices(parentContext);
parentContext.refresh();
-
+
+ System.out.println("Parent context " + parentContext);
+
AbstractApplicationContext context = parseConfigFiles(parentContext);
context
.addBeanFactoryPostProcessor(new PropertySetter(_properties));
context.refresh();
- exposeProvidedServices(context, scope);
+ exposeProvidedServices(context, aExternalScope);
scope.put(CONTEXT_KEY, context);
return scope;
}
addInterface(_provided.get(name), svc, aScope);
System.out.println("addService " + _provided.get(name) + " " + svc);
- aScope.publishInterface(_provided.get(name), svc);
}
}
// Parse spring config files
return new ClassPathXmlApplicationContext((String[]) _configFiles,
- aParentContext);
+ false, aParentContext);
}
private void registerRequiredServices(GenericApplicationContext aParentContext) {