From users-return-7991-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Tue Jun 24 15:12:21 2008 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 28097 invoked from network); 24 Jun 2008 15:12:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 24 Jun 2008 15:12:21 -0000 Received: (qmail 1248 invoked by uid 500); 24 Jun 2008 15:12:21 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 1234 invoked by uid 500); 24 Jun 2008 15:12:21 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 1222 invoked by uid 99); 24 Jun 2008 15:12:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 08:12:20 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of michael.duerig@day.com designates 62.192.10.254 as permitted sender) Received: from [62.192.10.254] (HELO mailgw3.day.com) (62.192.10.254) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Jun 2008 15:11:31 +0000 Received: from [10.0.0.83] (blsm-064.corp.day.com [10.0.0.83]) by mailgw3.day.com (Postfix) with ESMTP id 3A748170C1 for ; Tue, 24 Jun 2008 17:56:19 +0200 (CEST) Message-ID: <48610EF8.3080201@day.com> Date: Tue, 24 Jun 2008 17:12:56 +0200 From: =?ISO-8859-1?Q?Michael_D=FCrig?= User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Recognition of JCR nodetypes in a SPI implementation References: <485BB7A4.4080000@gmx.net> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Pierre, Yes the source you mention can be used to read node type definitions from a cnd file. But you are not required to do so. You may as well choose any other mechanism to construct node type definitions (i.e. construct them manually in your code). I put CompactNodeTypeDefReader into jackrabbit-spi-commons since I faced the same problem a couple of weeks ago. It was originally only available in jackrabbit-core. Michael Pierre Leman wrote: > Hi, > > > Thank you for your help. In fact you are talking about this class you don't > ? > > http://svn.apache.org/repos/asf/jackrabbit/trunk/jackrabbit-spi-commons/src/main/java/org/apache/jackrabbit/spi/commons/nodetype/compact/CompactNodeTypeDefReader.java > > In the current version of JackRabbit there is only three defined exception > in the jackrabbit-spi-commons package. As it figure in the trunk of > jackrabbit-spi-commons, I think it will be present in the future 1.5 release > of Jackrabbit, right ? > I found the builtin_nodetypes.cnd in the JackRabbit source code, which > define the standard nodetype definitions. > I think I have to load them using the CompactNodeTypeDefReader class, don't > I ? > > Regards, > Pierre >