cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Berin Loritsch" <blorit...@infoplanning.com>
Subject Re: Configuration Patterns and Sitemap Generation
Date Mon, 23 Oct 2000 21:12:47 GMT
----- Original Message ----- 
From: "Berin Loritsch" <bloritsch@infoplanning.com>
To: <cocoon-dev@xml.apache.org>
Sent: Monday, October 23, 2000 2:58 PM
Subject: Configuration Patterns and Sitemap Generation


> I noticed that the compiled sitemap idea can be improved
> now that the new Avalon is integrated.  I will enumerate
> the methods, and it might be that the Sitemap no longer
> needs compilation.
> 
> 1) configure() passes the configuration object to the
>    parent, and then proceeded to create a bunch of
>    SAX events to feed the SAXConfigurationBuilder and
>    build a new Configuration object.
> 
> This is no longer necessary.  The purpose of the
> Configure method is to configure *this* object.
> Avalon includes a DefaultConfiguration object where
> you can directly build Configuration trees.  This results
> in much cleaner code already.
> 
> However, a Sitemap object only needs to read the
> Configuration tree and create the matchers, transformers,
> serializers, readers, and other components.

I did change the configure() to build the Configuration
objects directly--there are a couple minor anomolies, but this
results in smaller code and quicker sitemap compiling.



Mime
View raw message