You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by se...@apache.org on 2010/05/16 15:19:56 UTC

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

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 )
         {