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 BF68B7282 for ; Sun, 13 Nov 2011 11:06:18 +0000 (UTC) Received: (qmail 68265 invoked by uid 500); 13 Nov 2011 11:06:18 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 68197 invoked by uid 500); 13 Nov 2011 11:06:17 -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 68190 invoked by uid 99); 13 Nov 2011 11:06:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 11:06:17 +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 (nike.apache.org: domain of elecharny@gmail.com designates 74.125.82.44 as permitted sender) Received: from [74.125.82.44] (HELO mail-ww0-f44.google.com) (74.125.82.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 13 Nov 2011 11:06:09 +0000 Received: by wwe5 with SMTP id 5so3171468wwe.1 for ; Sun, 13 Nov 2011 03:05:49 -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 :content-type:content-transfer-encoding; bh=ptcrjfzfca0i2+Y1hTdeyA9PBCOKKB2vzXMPqPdq+sA=; b=stCPwYHtR9r+gc39dfVmumoFAIMOCk558Oj0NBRRKPvipMsvJWwHNMDI6M/YLN4pWt XiWHSkghW2coeHB8iwP38LkA3nTIiCAChTgEgMVAt5cxuAtApB34AI168bnRUqjkCZwh HWcxHY+jnHy1IWRspsZ8EaeFqdokr4F1Qwqsc= Received: by 10.180.105.9 with SMTP id gi9mr21343037wib.21.1321182348872; Sun, 13 Nov 2011 03:05:48 -0800 (PST) Received: from emmanuel-lecharnys-MacBook-Pro.local (ran75-1-78-192-106-184.fbxo.proxad.net. [78.192.106.184]) by mx.google.com with ESMTPS id fo3sm10178016wib.21.2011.11.13.03.05.47 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 13 Nov 2011 03:05:47 -0800 (PST) Message-ID: <4EBFA48B.7070406@gmail.com> Date: Sun, 13 Nov 2011 12:05:47 +0100 From: Emmanuel Lecharny Reply-To: elecharny@apache.org User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: Apache Directory Developers List Subject: Interceptors : next steps Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org Hi guys, after this huge refactoring, I'd like to share the list of remaining tasks I foresee regarding interceptors : - currently, the order is enforced in the DefaultDirectoryService.setDefaultInterceptorConfigurations() method. This does not sounds good, when the configuration already contains a specific order. We need to use the configuration read from the DIT here. - there are 4 places where we call the interceptor chain from within another interceptor : when dealing with schema modification (I have posted a mail about it lately). We need to refactor this code. - we need to implement the two-level interceptors strategy we discussed with Alex and Göktürk, a strategy that will allow a user to add an interceptor where he wants, without messing with the mandatory ordered default interceptors - we need to add a flag to enable or disable an interceptor at will. This flag must be checked when transiting from one interceptor to another one - it would be a great addition to add a way for an admin to inject an interceptor into a user's chain (for instance, a logger for debug purpose). We have to think about this. That could combine the design of a specific extended operation, plus some protected list of interceptor manipulation. Not urgent - last, not list, we have to make the Interceptors OSGi compliant now. I hope I haven't forgot anything. Feel free to comment ! -- Regards, Cordialement, Emmanuel Lécharny www.iktek.com