throw new IllegalStateException("No deployment strategy!");
}
ServletLifecycle.beginInitialization();
Contexts.getApplicationContext().set(Component.PROPERTIES, properties);
addComponent( new ComponentDescriptor(Init.class), Contexts.getApplicationContext());
Init init = (Init) Component.getInstance(Init.class, ScopeType.APPLICATION);
// Make the deployment strategies available in the contexts. This gives
// access to custom deployment handlers for processing custom annotations
Contexts.getEventContext().set(StandardDeploymentStrategy.NAME, standardDeploymentStrategy);
scanForComponents();
ComponentDescriptor desc = findDescriptor(Jbpm.class);
if (desc != null && desc.isInstalled())
{
init.setJbpmInstalled(true);
}
init.checkDefaultInterceptors();
init.setTimestamp(System.currentTimeMillis());
addSpecialComponents(init);
// Add the war root deployment
warRootDeploymentStrategy = new WarRootDeploymentStrategy(
Thread.currentThread().getContextClassLoader(), warRoot, new File[] { warClassesDirectory, warLibDirectory, hotDeployDirectory });
Contexts.getEventContext().set(WarRootDeploymentStrategy.NAME, warRootDeploymentStrategy);
warRootDeploymentStrategy.scan();
init.setWarTimestamp(System.currentTimeMillis());
hotDeploymentStrategy = createHotDeployment(Thread.currentThread().getContextClassLoader(), isHotDeployEnabled(init));
Contexts.getEventContext().set(HotDeploymentStrategy.NAME, hotDeploymentStrategy);
init.setHotDeployPaths( hotDeploymentStrategy.getHotDeploymentPaths() );
if (hotDeploymentStrategy.available())
{
hotDeploymentStrategy.scan();
installHotDeployableComponents();
}
installComponents(init);
for (String globalImport: globalImports)
{
init.importNamespace(globalImport);
}
ServletLifecycle.endInitialization();
log.info("done initializing Seam");
return this;