incubator-jspwiki-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Janne Jalkanen <>
Subject Re: svn commit: r773455 - in /incubator/jspwiki/trunk: ./ src/java/org/apache/wiki/ src/java/org/apache/wiki/api/ src/java/org/apache/wiki/content/ src/java/org/apache/wiki/parser/ src/java/org/apache/wiki/plugin/ src/java/org/apache/wiki/search/ src
Date Mon, 11 May 2009 17:43:35 GMT
> Saving is better done in ContentManager because we must fire events to
> signify a successful save, same as we do for delete/rename events.

The actual saving responsibility might be ContentManager's job; but  
I'm just suggesting that any state manipulation of the page, including  
saving it, should be done via methods in the WikiPage interface.   
Whether they delegate to ContentManager is a matter of taste.

The practical reason being that ContentManager is not stable and won't  
be for a while.  I would like to keep it essentially private to the  

The idea is that e.g. plugin/filter writers don't have to learn a very  
complex, non-stable API to do the stuff that they do often.  Like  
setting attributes and saving pages.  This also means that within our  
code, we should rather use the preferred API than an "internal" API.


View raw message