Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 42678 invoked from network); 20 Apr 2007 15:50:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Apr 2007 15:50:54 -0000 Received: (qmail 29862 invoked by uid 500); 20 Apr 2007 15:51:00 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 29825 invoked by uid 500); 20 Apr 2007 15:50:59 -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 29814 invoked by uid 99); 20 Apr 2007 15:50:59 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 08:50:59 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of ole.ersoy@gmail.com designates 66.249.82.239 as permitted sender) Received: from [66.249.82.239] (HELO wx-out-0506.google.com) (66.249.82.239) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Apr 2007 08:50:52 -0700 Received: by wx-out-0506.google.com with SMTP id h31so1032314wxd for ; Fri, 20 Apr 2007 08:50:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=GLTR+qPo0wMoedmQ7+hdYqC1AI0t1zxIEZBovYC2Tbhl5KOW2w+BbE2ef2TXS3nlpmneSNv7Q2PMNttTmOf3xfFfmgGcxmXY+ieVi4wBMLIz0JOPnGXIScqNTckoikNKmgs6osE8ze5nLw9mbEeqYF3zTWor3Y7yUWh3dVbIoHw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=Rqz1praEPgGOJ/VCEeNbB2EnCueyLOBmA3H+1n35YbVsVtpKVRm+3r2aTpXfXIC2+plwGVjsgek0KwqHaV6i8/6GXHU0k+PysXWmUp/b7NjD4fXie/w0Wom8usEZ+1dJMyQ5P/ALqFavm82sZOgohZV15e+7S5BoIHdhQ5bhSC8= Received: by 10.90.83.14 with SMTP id g14mr425056agb.1177084231577; Fri, 20 Apr 2007 08:50:31 -0700 (PDT) Received: from ?192.168.1.24? ( [24.13.179.233]) by mx.google.com with ESMTP id 38sm4851882nzf.2007.04.20.08.50.30; Fri, 20 Apr 2007 08:50:30 -0700 (PDT) Message-ID: <4628E04D.9020300@gmail.com> Date: Fri, 20 Apr 2007 10:46:21 -0500 From: Ole Ersoy User-Agent: Thunderbird 1.5.0.10 (X11/20070302) MIME-Version: 1.0 To: Apache Directory Developers List Subject: [Schema] Constants - A happy Medium? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hey Guys, I know what you are thinking. Heeeere he goes again :-) And you would be right. But I think I may have found a simpler solution that everyone can live with. In order to minimize the DAS's dependencies, I created another set of constants and I'm naming them like this: AttributeTypeConstants So AttributeType's constants have their own interface. This completely eliminates the need for a convention, and it's clear that these are attribute types. So to get the CN attribute type we just do: AttributeTypeConstants.CN It's short and we see that it is an AttributeType. So if we wanted to we could keep the the other constants for now and slowly introduce these. That way we don't break client code, and the names are shorter still and more precise. Cheers, - Ole