geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r475365 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/Activator.java
Date Wed, 15 Nov 2006 19:11:27 GMT
Author: sppatel
Date: Wed Nov 15 11:11:26 2006
New Revision: 475365

URL: http://svn.apache.org/viewvc?view=rev&rev=475365
Log:
fix exception on bundle shutdown... shutdown state update tasks in bundle stop()

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/Activator.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/Activator.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/Activator.java?view=diff&rev=475365&r1=475364&r2=475365
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/Activator.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/Activator.java
Wed Nov 15 11:11:26 2006
@@ -18,6 +18,9 @@
 
 import org.eclipse.core.runtime.Plugin;
 import org.eclipse.core.runtime.Status;
+import org.eclipse.wst.server.core.IServer;
+import org.eclipse.wst.server.core.ServerCore;
+import org.eclipse.wst.server.core.ServerUtil;
 import org.osgi.framework.BundleContext;
 
 /**
@@ -55,7 +58,13 @@
 	 * @see org.eclipse.core.runtime.Plugin#stop(org.osgi.framework.BundleContext)
 	 */
 	public void stop(BundleContext context) throws Exception {
-		//TODO Stop all update server state tasks
+		IServer[] servers = ServerCore.getServers();
+		for(int i = 0; i < servers.length; i++) {
+			GeronimoServerBehaviourDelegate delegate = (GeronimoServerBehaviourDelegate) servers[i].getAdapter(GeronimoServerBehaviourDelegate.class);
+			if(delegate != null) {
+				delegate.stopUpdateServerStateTask();
+			}
+		}
 		ModuleArtifactMapper.getInstance().save();
 		super.stop(context);
 		plugin = null;



Mime
View raw message