You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by el...@apache.org on 2017/04/21 11:34:37 UTC
svn commit: r1792184 -
/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Author: elecharny
Date: Fri Apr 21 11:34:37 2017
New Revision: 1792184
URL: http://svn.apache.org/viewvc?rev=1792184&view=rev
Log:
Call the Interceptor.destroy() method in the shutdown() method
Modified:
directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
Modified: directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java?rev=1792184&r1=1792183&r2=1792184&view=diff
==============================================================================
--- directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java (original)
+++ directory/apacheds/trunk/core/src/main/java/org/apache/directory/server/core/DefaultDirectoryService.java Fri Apr 21 11:34:37 2017
@@ -1305,16 +1305,24 @@ public class DefaultDirectoryService imp
LOG.debug( "--- Destroying the journal " );
journal.destroy();
}
-
// --------------------------------------------------------------------
// Shutdown the partition
// --------------------------------------------------------------------
-
LOG.debug( "--- Destroying the nexus" );
partitionNexus.destroy();
// --------------------------------------------------------------------
+ // Shutdown the interceptors
+ // --------------------------------------------------------------------
+ LOG.debug( "--- Destroying the interceptors" );
+
+ for ( Interceptor interceptor : interceptors )
+ {
+ interceptor.destroy();
+ }
+
+ // --------------------------------------------------------------------
// And shutdown the server
// --------------------------------------------------------------------
LOG.debug( "--- Deleting the cache service" );