Pier Fumagalli wrote: > > I see this interface > org.apache.cocoon.components.SitemapConfigurable, and I > say, well, whoha, that's friggin' cute! :-) I'm given a Configuration > element for my position in the pipeline at setup time... > > Riiight, but then I start off from org.apache.cocoon.generation.Generator, > which by itself implements org.apache.cocoon.sitemap.SitemapModelComponent > and then I stop understanding... > > It doesn't make any bloody sense... The two setup() methods are completely > unrelated, and have different signatures... So, well... > > What's the point of having SitemapConfigurable in the first place? > The answer is simple: it's a nice little hack....
Ok, the SitemapConfigurable interface can be used for none-sitemap components to get configuration that is defined in the sitemap. We have currently two examples for this: a) a global input module b) the authentication configuration So, you can define/configure global variables in a sitemap and when the corresponding component is used it gets this congiration via the setup() method (and all configurations of any parent sitemap). As these components are not directly sitemap components but configured in the sitemap, there is this new interface. Carsten --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]