From b4f758f88e8c97be870ba86080d7f0adb6dafb65 Mon Sep 17 00:00:00 2001 From: lresende Date: Sat, 4 Jul 2009 16:21:28 +0000 Subject: TUSCANY-2984 - Adding prioritization while starting module activators to allow module activators dependencies to start first git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@791146 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java | 4 ++++ .../META-INF/services/org.apache.tuscany.sca.core.ModuleActivator | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) (limited to 'branches/sca-java-1.x/modules/web-javascript-dojo/src/main') diff --git a/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java b/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java index 5337b870d8..3eaf6bf47a 100644 --- a/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java +++ b/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/java/org/apache/tuscany/sca/web/javascript/dojo/DojoModuleActivator.java @@ -40,6 +40,10 @@ public class DojoModuleActivator implements ModuleActivator { public void start(ExtensionPointRegistry registry) { ServletHostExtensionPoint servletHosts = registry.getExtensionPoint(ServletHostExtensionPoint.class); this.servletHost = servletHosts.getServletHosts().get(0); + + if (servletHost == null) { + throw new IllegalStateException("Can't find ServletHost reference !"); + } Servlet servlet = null; diff --git a/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator b/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator index b703bc5b3a..34edcb5199 100644 --- a/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator +++ b/branches/sca-java-1.x/modules/web-javascript-dojo/src/main/resources/META-INF/services/org.apache.tuscany.sca.core.ModuleActivator @@ -15,4 +15,4 @@ # specific language governing permissions and limitations # under the License. # Implementation class for the ModuleActivator -org.apache.tuscany.sca.web.javascript.dojo.DojoModuleActivator +org.apache.tuscany.sca.web.javascript.dojo.DojoModuleActivator;priority=9999 -- cgit v1.2.3