Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 74413 invoked from network); 9 Dec 2004 15:11:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 9 Dec 2004 15:11:18 -0000 Received: (qmail 40512 invoked by uid 500); 9 Dec 2004 15:11:11 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 40470 invoked by uid 500); 9 Dec 2004 15:11:10 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@cocoon.apache.org Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 40455 invoked by uid 99); 9 Dec 2004 15:11:10 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from out2.smtp.messagingengine.com (HELO out2.smtp.messagingengine.com) (66.111.4.26) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 09 Dec 2004 07:11:08 -0800 Received: from frontend2.messagingengine.com (frontend2.internal [10.202.2.151]) by frontend1.messagingengine.com (Postfix) with ESMTP id 8D6ABC40173 for ; Thu, 9 Dec 2004 10:10:56 -0500 (EST) X-Sasl-enc: /GFDdSfUCP4qN3xz/8hoJA 1102605055 Received: from [192.168.1.74] (unknown [213.48.13.39]) by www.fastmail.fm (Postfix) with ESMTP id CB4E456D394 for ; Thu, 9 Dec 2004 10:10:54 -0500 (EST) Message-ID: <41B86A79.1000001@upaya.co.uk> Date: Thu, 09 Dec 2004 15:08:41 +0000 From: Upayavira User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: how to list all sitemap components References: <41B7925C.2050609@apache.org> <90a75eb10412090701596a71bf@mail.gmail.com> In-Reply-To: <90a75eb10412090701596a71bf@mail.gmail.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Geoff Howard wrote: >I'd just use eclipse to find every class that implements the right >interface(s). Would that work? > > Or, what we need is a tool that lists all the interfaces that a class implements. Hmm. Javadoc. For the CastorTransformer, you get a line saying: *All Implemented Interfaces:* Component , Configurable , ContentHandler , LexicalHandler , LogEnabled , Poolable , Recyclable , SitemapModelComponent , Transformer , XMLConsumer , XMLConsumer , XMLPipe , XMLProducer The word Transformer is in there, as is SitemapModelComponent, each of which tell you what you want to know. Am I correct? Regards, Upayavira >Geoff > >On Thu, 09 Dec 2004 10:46:36 +1100, David Crossley wrote: > > >>I am trying to create a list of all sitemap >>components in the Cocoon core and blocks. >> >>So far i have tried to use 'find and grep' >>by looking for well-known filenames, >>e.g. *Transformer.java and also searching in >>well-known directories, e.g. /transformation/ >>However, that misses some components and gets >>too much extra stuff. >> >>Using the "package" name inside the *.java >>also misses some components. >> >>Is there a way to uniquely identify the >>sitemap components by grepping the *.java >>e.g. perhaps a unique method name? >> >>--David >> >> >> >> > > >