Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 67514 invoked from network); 4 May 2005 03:09:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 03:09:46 -0000 Received: (qmail 3959 invoked by uid 500); 4 May 2005 03:11:35 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 3912 invoked by uid 500); 4 May 2005 03:11:34 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 3879 invoked by uid 99); 4 May 2005 03:11:34 -0000 X-ASF-Spam-Status: No, hits=0.5 required=10.0 tests=FROM_ENDS_IN_NUMS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of aok123@bellsouth.net designates 205.152.59.70 as permitted sender) Received: from imf22aec.mail.bellsouth.net (HELO imf22aec.mail.bellsouth.net) (205.152.59.70) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 03 May 2005 20:11:34 -0700 Received: from [172.16.1.7] ([65.80.200.112]) by imf22aec.mail.bellsouth.net (InterMail vM.5.01.06.11 201-253-122-130-111-20040605) with ESMTP id <20050504030941.WDHF2058.imf22aec.mail.bellsouth.net@[172.16.1.7]> for ; Tue, 3 May 2005 23:09:41 -0400 Message-ID: <42783CF5.4030301@bellsouth.net> Date: Tue, 03 May 2005 23:09:41 -0400 From: Alex Karasulu User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Restructuring Partition API References: <20050503233131.178FE13FA6@mail.vergenet.com> In-Reply-To: <20050503233131.178FE13FA6@mail.vergenet.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Endi Sukma Dewata wrote: > Hi, > > I�m proposing some changes to the Partition API. The changes include: > Hi Endi. > * Moving partition-related classes to > org.apache.ldap.server.partition. This is to provide a cleaner > Partition API, separate from other classes. > +1 > * Renaming interface ContextPartition to Partition. This is just > to avoid confusion with the new class called PartitionContext. > See next item. > > * Creating new interfaces PartitionConfig and PartitionContext. > This is similar to ServletConfig and ServletContext. The > PartitionConfig holds the configuration information for each > partition. The PartitionContext provides information about the > context in which the partition is running (i.e. the server). > Why may I ask is the PartitionContext needed? What kind of info besides the dn of the context for the partition is needed? > * Creating new class GenericPartitionConfig and > GenericPartitionContext. These classes provide the default > implementation of PartitionConfig and PartitionContext. These > classes are only used internally, they won�t be exposed in the API. > Ok yah makes sense once its clear for why we want a PartitionContext. > * Creating a new class AbstractPartition that implements > Partition. This becomes the base class for all partitions. > Hmm what goes into AbstractPartition - what can we stuff in there now that you move JDBM stuff down an extra notch in inheritance hierarchy? > * Renaming AbstractContextPartition to AbstractDbPartition and > make it extends the AbstractPartition. This becomes the base > class for all partitions using the JDBM database (e.g. > ApplicationPartition and SystemPartition). > How about calling it AbstractJdbmPartition? > Note that these changes won�t be backward compatible, so those who > have implemented custom partition would need to fix their code a > little bit. But things should become simpler now, you don�t have to > implement an interface anymore, you can just extend from the base class. > Any thoughts from others regarding these changes? > Any suggestions? Comments? Please let me know if this is ok. I will > submit a patch that includes these changes and also the documentations > (xdocs). Thanks a lot. > Alex