throw new IllegalArgumentException("Could not start " + containerQualifier + " container. The container life cycle is controlled by Arquillian");
}
List<Deployment> managedDeployments = scenario.startupDeploymentsFor(new TargetDescription(containerQualifier));
Container container = registry.getContainer(new TargetDescription(containerQualifier));
for (String name : config.keySet())
{
container.getContainerConfiguration().overrideProperty(name, config.get(name));
}
log.info("Manual starting of a server instance with overridden configuration. New configuration: " +
container.getContainerConfiguration().getContainerProperties());
event.fire(new SetupContainer(container));
event.fire(new StartContainer(container));
for (Deployment d : managedDeployments)
{
if (!d.isDeployed())
{
log.info("Automatic deploying of the managed deployment with name " + d.getDescription().getName() +
" for the container with name " + container.getName());
event.fire(new DeployDeployment(container, d));
}
}
}