]> git.argeo.org Git - lgpl/argeo-commons.git/blobdiff - eclipse/runtime/org.argeo.eclipse.ui/src/main/java/org/argeo/eclipse/spring/SpringExtensionFactory.java
Rename JCR explorer
[lgpl/argeo-commons.git] / eclipse / runtime / org.argeo.eclipse.ui / src / main / java / org / argeo / eclipse / spring / SpringExtensionFactory.java
index 49a226d39339bf15d5a7dffb3884f79709896897..f20e1d1249f70c8e3a73fddaee6226ac9ee0e95d 100644 (file)
@@ -62,11 +62,6 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory,
 \r
        public void setInitializationData(IConfigurationElement config,\r
                        String propertyName, Object data) throws CoreException {\r
-               String beanName = getBeanName(data, config);\r
-               if (beanName == null)\r
-                       throw new ArgeoException("Cannot find bean name for extension "\r
-                                       + config);\r
-\r
                String bundleSymbolicName = config.getContributor().getName();\r
                ApplicationContext appContext = ApplicationContextTracker\r
                                .getApplicationContext(bundleSymbolicName);\r
@@ -75,6 +70,11 @@ public class SpringExtensionFactory implements IExecutableExtensionFactory,
                                        "Cannot find application context for bundle "\r
                                                        + bundleSymbolicName);\r
 \r
+               String beanName = getBeanName(data, config);\r
+               if (beanName == null)\r
+                       throw new ArgeoException("Cannot find bean name for extension "\r
+                                       + config);\r
+\r
                this.bean = appContext.getBean(beanName);\r
                if (this.bean instanceof IExecutableExtension) {\r
                        ((IExecutableExtension) this.bean).setInitializationData(config,\r