directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From seelm...@apache.org
Subject svn commit: r944826 - /directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
Date Sun, 16 May 2010 13:19:56 GMT
Author: seelmann
Date: Sun May 16 13:19:56 2010
New Revision: 944826

URL: http://svn.apache.org/viewvc?rev=944826&view=rev
Log:
No shutdown hook for tests

Modified:
    directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java

Modified: directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java?rev=944826&r1=944825&r2=944826&view=diff
==============================================================================
--- directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
(original)
+++ directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
Sun May 16 13:19:56 2010
@@ -74,6 +74,9 @@ public class DefaultDirectoryServiceFact
             // we we can set some properties like accesscontrol, anon access
             // before starting up the service
             directoryService = new DefaultDirectoryService();
+            // no need to register a shutdown hook during tests because this 
+            // starts a lot of threads and slows down test execution
+            directoryService.setShutdownHookEnabled( false );
         }
         catch ( Exception e )
         {



Mime
View raw message