On Mar 13, 2007, at 10:02 AM, Pablo Oliveira wrote:
On Mar 13, Sergiu Dumitriu (JIRA) wrote :
P.S.: It's so bad that there's no better way of getting configuration parameters. There should be a separate component, accessible from anywhere.
I really do agree here. This would be a great step towards a more modular XWiki. Even if not related: It's really annoying to have to pass an XWiki instance to the storage module, just so it can retrieve some conf parameters...
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 -Vincent