bundleManager.beginStart((BundleGeneration) bundleController.getCurrentGeneration(), startedState.getOptions());
startedState.clearOptions();
}
catch (BundleException be)
{
bundleManager.fireFrameworkEvent(new FrameworkEvent(FrameworkEvent.ERROR, bundleController, be));
}
}
}
}
}
else if (startLevel > desiredStartLevel)
{
while (startLevel > desiredStartLevel)
{
for (StartedState startedState : started)
{
BundleController bundleController = startedState.getBundleController();
if (startLevel == StartLevelImpl.this.getBundleStartLevel(bundleController))
{
try
{
bundleManager.beginStop((BundleGeneration) bundleController.getCurrentGeneration(), Bundle.STOP_TRANSIENT);
}
catch (Exception e)
{
bundleManager.fireFrameworkEvent(new FrameworkEvent(FrameworkEvent.ERROR, bundleController, e));
}
}
}
startLevel--;
}
}
bundleManager.fireFrameworkEvent(new FrameworkEvent(FrameworkEvent.STARTLEVEL_CHANGED, bundleManager.getBundle(0), null));
}