comments inline ...
On 6/21/06, Allen Gilliland <[EMAIL PROTECTED]> wrote:
David M Johnson wrote:
> On Jun 20, 2006, at 9:05 PM, Allen Gilliland wrote:
>> how come we need WeblogEntryPluginsHelper? i thought we were going
>> with overriding pojo methods?
>
> Yes, I'm not happy about the current situation.
>
> The problem is that:
> 1) Some plugins need to do some weblog specific setup, to read the
> bookmark collection for example. To optimize performance, it's best to
> init the plugins upfront. If that cannot be done upfront, then it must
> be done each time entry text is to be rendered.
Yes, I agree that kinda sucks, but we've lived with that up until now.
I don't know how to fix that either, but I think we can continue to live
with it and figure out an optimization later.
We've got the optimization in place now with 2.0. Plugins are
initialiazed upfront.
> For #2, I think we should change plugins so that they do NOT add things
> to the context , since the mechanism for adding things to context is to
> use page models.
I agree, the only plugin that I know this affects is the TextilePlugin
and it doesn't look like it will make the plugin break.
The Wiki plugin, one of my faves, will be broken. But I will fix it to
support 3.0 by using the page model approach.
I think that it's better for us to try and make this change sooner
rather than later. We know it's a change that needs to be made, so
eventually we are just going to have to bite the bullet and do it. Why
not now?
Yes, I agree. Templates will be written against this stuff, so we need
to get it right now.
I'm going with POJOs methods (e.g. getTransformedText,
getTransformedSummary) as I originally proposed -- and try to figure
out how to get some form of caching going. I can't accept walking the
bookmark collection everytime somebody calls getTransformedText.
- Dave