geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chir...@apache.org
Subject svn commit: r391431 - /geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/main/KernelMain.java
Date Tue, 04 Apr 2006 22:34:00 GMT
Author: chirino
Date: Tue Apr  4 15:33:56 2006
New Revision: 391431

URL: http://svn.apache.org/viewcvs?rev=391431&view=rev
Log:
Provide a way to destroy the kernel async

Modified:
    geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/main/KernelMain.java

Modified: geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/main/KernelMain.java
URL: http://svn.apache.org/viewcvs/geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/main/KernelMain.java?rev=391431&r1=391430&r2=391431&view=diff
==============================================================================
--- geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/main/KernelMain.java
(original)
+++ geronimo/xbean/trunk/xbean-server/src/main/java/org/apache/xbean/server/main/KernelMain.java
Tue Apr  4 15:33:56 2006
@@ -195,6 +195,12 @@
             Thread.currentThread().setContextClassLoader(oldClassLoader);
         }
     }
+    
+    public void destroy() {
+        if( kernel!=null ) {
+            kernel.destroy();
+        }
+    }
 
     private static class DestroyKernelThread extends Thread {
         private final Kernel kernel;
@@ -208,4 +214,5 @@
             kernel.destroy();
         }
     }
+    
 }



Mime
View raw message