public SpringComponentManager(JetspeedBeanDefinitionFilter filter, String[] bootConfigs, String[] appConfigs, ServletContext servletContext,
String appRoot, Properties initProperties)
{
appRoot = appRoot.replace('\\', '/');
if (initProperties == null)
{
initProperties = new Properties();
}
initProperties.setProperty(JetspeedEngineConstants.APPLICATION_ROOT_KEY, appRoot);
if (!initProperties.containsKey(JetspeedEngineConstants.JETSPEED_PROPERTIES_PATH_KEY))
{
initProperties.put(JetspeedEngineConstants.JETSPEED_PROPERTIES_PATH_KEY, appRoot+JetspeedEngineConstants.JETSPEED_PROPERTIES_PATH_DEFAULT);
}
if (bootConfigs != null && bootConfigs.length > 0)
{
bootCtx = new FilteringXmlWebApplicationContext(filter, bootConfigs, initProperties, servletContext);
}
else
{
bootCtx = new FileSystemXmlApplicationContext();
}
appContext = new FilteringXmlWebApplicationContext(filter, appConfigs, initProperties, servletContext, bootCtx);
factories = new ArrayList<ApplicationContext>();
factories.add(appContext);
servletContext.setAttribute(WebApplicationContext.ROOT_WEB_APPLICATION_CONTEXT_ATTRIBUTE, appContext);
}