import org.argeo.slc.core.structure.tree.TreeSRegistry;
import org.argeo.slc.logging.Log4jUtils;
import org.argeo.slc.runtime.SlcExecutionOutput;
+import org.springframework.beans.factory.BeanFactoryUtils;
import org.springframework.beans.factory.ListableBeanFactory;
import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;
import org.springframework.beans.factory.xml.XmlBeanDefinitionReader;
private final static Log log = LogFactory.getLog(AntSlcApplication.class);
private Resource contextLocation;
- private ApplicationContext parentContext;
+ private ConfigurableApplicationContext parentContext;
private Resource rootDir;
private Resource confDir;
ListableBeanFactory context = (ListableBeanFactory) project
.getReference(AntConstants.REF_ROOT_CONTEXT);
// Register build listeners
- Map<String, BuildListener> listeners = context.getBeansOfType(
- BuildListener.class, false, true);
+ Map<String, BuildListener> listeners = BeanFactoryUtils
+ .beansOfTypeIncludingAncestors(context, BuildListener.class,
+ false, false);
for (BuildListener listener : listeners.values()) {
project.addBuildListener(listener);
}
this.workDir = workDir;
}
- public void setParentContext(ApplicationContext runtimeContext) {
+ public void setParentContext(ConfigurableApplicationContext runtimeContext) {
this.parentContext = runtimeContext;
}