directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kayyag...@apache.org
Subject svn commit: r1404164 - /directory/apacheds/trunk/core-annotations/src/main/java/org/apache/directory/server/core/factory/DefaultDirectoryServiceFactory.java
Date Wed, 31 Oct 2012 14:22:12 GMT
Author: kayyagari
Date: Wed Oct 31 14:22:12 2012
New Revision: 1404164

URL: http://svn.apache.org/viewvc?rev=1404164&view=rev
Log:
set CacheService at the time of instantiating DirectoryService

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=1404164&r1=1404163&r2=1404164&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
Wed Oct 31 14:22:12 2012
@@ -26,6 +26,7 @@ import java.util.List;
 import org.apache.commons.io.FileUtils;
 import org.apache.directory.server.constants.ServerDNConstants;
 import org.apache.directory.server.core.DefaultDirectoryService;
+import org.apache.directory.server.core.api.CacheService;
 import org.apache.directory.server.core.api.DirectoryService;
 import org.apache.directory.server.core.api.InstanceLayout;
 import org.apache.directory.server.core.api.partition.Partition;
@@ -224,6 +225,11 @@ public class DefaultDirectoryServiceFact
         directoryService.setInstanceId( name );
         buildInstanceDirectory( name );
 
+        CacheService cacheService = new CacheService();
+        cacheService.initialize( directoryService.getInstanceLayout() );
+
+        directoryService.setCacheService( cacheService );
+        
         // Init the service now
         initSchema();
         initSystemPartition();



Mime
View raw message