ServletLifecycle.beginInitialization();
Contexts.getApplicationContext().set(Component.PROPERTIES, properties);
scanForHotDeployableComponents();
scanForComponents();
addComponent( new ComponentDescriptor(Init.class), Contexts.getApplicationContext());
Init init = (Init) Component.getInstance(Init.class, ScopeType.APPLICATION);
ComponentDescriptor desc = findDescriptor(Jbpm.class);
if (desc != null && desc.isInstalled())
{
init.setJbpmInstalled(true);
}
init.setTimestamp( System.currentTimeMillis() );
if (hotDeploymentStrategy != null)
{
init.setHotDeployPaths( hotDeploymentStrategy.getHotDeploymentPaths() );
}
addSpecialComponents(init);
installComponents(init);
for (String globalImport: globalImports)
{
init.importNamespace(globalImport);
}
ServletLifecycle.endInitialization();
log.info("done initializing Seam");
return this;