Spring extension forces start of lazy plugins
[lgpl/argeo-commons.git] / base / runtime / org.argeo.eclipse.ui / src / main / java / org / argeo / eclipse / spring / ApplicationContextTracker.java
index fcd42bab68c4af0c8d3d186a8f0b00f704b26875..527f45ee2bd7dc15586b552712c0c322f5fd0bbf 100644 (file)
@@ -111,8 +111,8 @@ class ApplicationContextTracker {
                if (log.isTraceEnabled())\r
                        log.trace("Get application context for bundle " + contributorBundle);\r
 \r
-               if (contributorBundle.getState() != Bundle.ACTIVE\r
-                               && contributorBundle.getState() != Bundle.STARTING) {\r
+               // Start if not yet started (also if in STARTING state, may be lazy)\r
+               if (contributorBundle.getState() != Bundle.ACTIVE) {\r
                        try {\r
                                if (log.isTraceEnabled())\r
                                        log.trace("Starting bundle: "\r