Return-Path: X-Original-To: apmail-directory-dev-archive@www.apache.org Delivered-To: apmail-directory-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B91CC9619 for ; Tue, 8 Nov 2011 15:16:38 +0000 (UTC) Received: (qmail 91602 invoked by uid 500); 8 Nov 2011 15:16:38 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 91562 invoked by uid 500); 8 Nov 2011 15:16:38 -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 91555 invoked by uid 99); 8 Nov 2011 15:16:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 15:16:38 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of elecharny@gmail.com designates 74.125.82.178 as permitted sender) Received: from [74.125.82.178] (HELO mail-wy0-f178.google.com) (74.125.82.178) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 Nov 2011 15:16:32 +0000 Received: by wyh13 with SMTP id 13so657980wyh.37 for ; Tue, 08 Nov 2011 07:16:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:reply-to:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=2a223mG8UECfZHGzzaCmsp1M3ITkUQPjrAFVLpn3ews=; b=YFYRHnKkLfjEZW9tHjufRpppHg2IYFEDWB1Kc1SiQFrgZCMVtjzscB8tvH0Tm1YXf7 HHHf/IlKdeyhop80EvnkjlzOcY79LW7wIVImWHq9zliNAEyBdsZi7h3DoJVzbcwiHulW h2SEJheDwTR+aDaTWxxyRsxRJMdOgd7y4CgdI= Received: by 10.180.95.170 with SMTP id dl10mr13394592wib.31.1320765369250; Tue, 08 Nov 2011 07:16:09 -0800 (PST) Received: from emmanuel-lecharnys-MacBook-Pro.local (lon92-10-78-226-4-211.fbx.proxad.net. [78.226.4.211]) by mx.google.com with ESMTPS id f18sm1033046wiv.14.2011.11.08.07.16.08 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 08 Nov 2011 07:16:08 -0800 (PST) Message-ID: <4EB947B7.7000603@gmail.com> Date: Tue, 08 Nov 2011 16:16:07 +0100 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: Some experiment result about the chain management References: <4EB845DC.3030604@gmail.com> <4EB853A6.8030301@gmail.com> <4EB8F18C.1030700@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 11/8/11 3:58 PM, Kiran Ayyagari wrote: > On Tue, Nov 8, 2011 at 4:08 AM, Emmanuel Lecharny wrote: >> Hi, >> >> this morning, after a short night of sleep, I was thinking that it could be >> better to compute the next interceptor into the OperationContext class, >> where we store the list of interceptors, instead of doing it into the >> AbstractInterceptor class. >> >> thoughts ? >> > nothing at the moment, will take a look at the code after committing. It as a bad idea... The operationContext does not have enough information to compute the next interceptor, that would lead to the creation of 14 different methods to do so... Otherwise, the getRootDse, delete and unbnd methods have been now successfully migrated, and the list of interceptors are now computed into the directoryService class, using reflection (we check each interceptors we have in the DS, discover the ad/delete... methods, and if the intercepor has such a method, then it is added to the list for the add/delete/... operation). Works just fine. -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com