Spring extension forces start of lazy plugins
authorMathieu Baudier <mbaudier@argeo.org>
Mon, 20 Aug 2012 13:21:42 +0000 (13:21 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Mon, 20 Aug 2012 13:21:42 +0000 (13:21 +0000)
git-svn-id: https://svn.argeo.org/commons/trunk@5514 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

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