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
   
<http://avalon.apache.org/framework/api/org/apache/avalon/framework/component/Component.html>,
   Configurable
   
<http://avalon.apache.org/framework/api/org/apache/avalon/framework/configuration/Configurable.html>,
   ContentHandler
   
<http://java.sun.com/j2ee/sdk_1.3/techdocs/api/org/xml/sax/ContentHandler.html>,
   LexicalHandler
   
<http://java.sun.com/j2ee/sdk_1.3/techdocs/api/org/xml/sax/ext/LexicalHandler.html>,
   LogEnabled
   
<http://avalon.apache.org/framework/api/org/apache/avalon/framework/logger/LogEnabled.html>,
   Poolable
   
<http://excalibur.apache.org/apidocs/org/apache/avalon/excalibur/pool/Poolable.html>,
   Recyclable
   
<http://excalibur.apache.org/apidocs/org/apache/avalon/excalibur/pool/Recyclable.html>,
   SitemapModelComponent
   
<http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/sitemap/SitemapModelComponent.html>,
   Transformer
   
<http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/transformation/Transformer.html>,
   XMLConsumer
   
<http://excalibur.apache.org/apidocs/org/apache/excalibur/xml/sax/XMLConsumer.html>,
   XMLConsumer
   
<http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/xml/XMLConsumer.html>,
   XMLPipe
   <http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/xml/XMLPipe.html>,
   XMLProducer
   <http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/xml/XMLProducer.html>

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 <[EMAIL PROTECTED]> 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










Reply via email to