From commits-return-24777-apmail-directory-commits-archive=directory.apache.org@directory.apache.org Thu Feb 04 23:07:07 2010 Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 46150 invoked from network); 4 Feb 2010 23:07:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Feb 2010 23:07:07 -0000 Received: (qmail 41956 invoked by uid 500); 4 Feb 2010 23:07:07 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 41895 invoked by uid 500); 4 Feb 2010 23:07:07 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 41886 invoked by uid 99); 4 Feb 2010 23:07:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 23:07:07 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Feb 2010 23:07:04 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id E65F62388A5F; Thu, 4 Feb 2010 23:06:43 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r906720 - /directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java Date: Thu, 04 Feb 2010 23:06:43 -0000 To: commits@directory.apache.org From: seelmann@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20100204230643.E65F62388A5F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: seelmann Date: Thu Feb 4 23:06:43 2010 New Revision: 906720 URL: http://svn.apache.org/viewvc?rev=906720&view=rev Log: Cast to BTreePartition only to allow other partition implementations (LDIF, HBase) Modified: directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java Modified: directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java?rev=906720&r1=906719&r2=906720&view=diff ============================================================================== --- directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java (original) +++ directory/apacheds/trunk/server-jndi/src/main/java/org/apache/directory/server/configuration/ApacheDS.java Thu Feb 4 23:06:43 2010 @@ -37,7 +37,7 @@ import org.apache.directory.server.core.entry.ClonedServerEntry; import org.apache.directory.server.core.entry.ServerEntry; import org.apache.directory.server.core.partition.Partition; -import org.apache.directory.server.core.partition.impl.btree.jdbm.JdbmPartition; +import org.apache.directory.server.core.partition.impl.btree.BTreePartition; import org.apache.directory.server.core.partition.ldif.LdifPartition; import org.apache.directory.server.core.schema.SchemaPartition; import org.apache.directory.server.i18n.I18n; @@ -133,9 +133,9 @@ for( Partition p : partitions ) { - if( p instanceof JdbmPartition ) + if( p instanceof BTreePartition ) { - ( ( JdbmPartition ) p ).setPartitionDir( new File( directoryService.getWorkingDirectory(), p.getId() ) ); + ( ( BTreePartition ) p ).setPartitionDir( new File( directoryService.getWorkingDirectory(), p.getId() ) ); } if( p.getSchemaManager() == null ) @@ -147,9 +147,9 @@ Partition sysPartition = directoryService.getSystemPartition(); - if( sysPartition instanceof JdbmPartition ) + if( sysPartition instanceof BTreePartition ) { - ( ( JdbmPartition ) sysPartition ).setPartitionDir( new File( directoryService.getWorkingDirectory(), sysPartition.getId() ) ); + ( ( BTreePartition ) sysPartition ).setPartitionDir( new File( directoryService.getWorkingDirectory(), sysPartition.getId() ) ); } if( sysPartition.getSchemaManager() == null )