in taverna-osgi-launcher/src/main/java/org/apache/taverna/osgilauncher/OsgiLauncher.java [180:199]
public void startServices(boolean waitForServices) throws BundleException {
if (framework == null || framework.getState() != Bundle.ACTIVE) {
throw new BundleException("Framework not started");
}
if (springOsgiExtender != null) {
logger.info("Starting Spring OSGi Extender");
springOsgiExtender.start();
if (waitForServices) {
logger.info("Waiting for spring contexts to be started");
for (Bundle bundle : installedBundles) {
if (bundle.getState() == Bundle.ACTIVE) {
if (hasSpringContext(bundle)) {
logger.fine("Waiting for " + bundle.getSymbolicName());
waitForSpringContext(context, bundle.getSymbolicName(), serviceLoadTimeoutSeconds);
}
}
}
}
}
}