[xwiki-dev] Re: [xwiki-commits] [Issue] Commented: (XWIKI-942) Customize default cache duration
Sergiu Dumitriu
sergiu.dumitriu at gmail.com
Tue Mar 13 11:05:13 CET 2007
On 3/13/07, Vincent Massol <vincent at massol.net> wrote:
>
>
> On Mar 13, 2007, at 10:29 AM, Pablo Oliveira wrote:
>
> > On Mar 13, Vincent Massol wrote :
> >> We'll have to take a decision here in the future:
> >> 1) either we provide a configuration per component
> >> 2) or we provide a global configuration
> >>
> >> I prefer 1) because:
> >> - a component is encapsulated completely in a JAR
> >> - a component shouldn't see by default configuration from other
> >> components. It's these other components who should offer APIs to
> >> return configuration data if required
> >
> > I also like 1 better.
> >
> > Yet I think from a user point of view, it seems more natural to edit a
> > single xwiki.cfg file than to edit a conf file inside some component's
> > JAR meta data. So I would still allow some global way of overriding
> > components configuration from a single configuration source.
>
> Yes you're right...
>
> There are 2 different types of configurations:
> - static ones
> - dynamic ones that can be modified by the user
>
> So component should have a default configuration so that they should
> work out of the box but users should be allowed to modify the
> configuration through an interface (in the wiki itself for example as
> it's currently done maybe).
>
> I'm not entirely sure about all this yet. Need to think more about it.
>
> Thanks
> -Vincent
Maybe http://jira.xwiki.org/jira/browse/XWIKI-648 helps?
--
http://purl.org/net/sergiu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xwiki.org/pipermail/devs/attachments/20070313/e99afbf3/attachment.htm
More information about the devs
mailing list