Hi, Am Dienstag, den 19.02.2008, 09:39 +0100 schrieb Carsten Ziegeler: > Hi, > > what do you think about supporting running modes in Sling? > I'm thinking of providing different configuration sets for different > environments and having an easy way of switching. > One use case is to a have a pre-defined "development" running mode > where for example logging is set to debug mode, or some configuration > settings for services are set to a more developer friendly way like > caching turned off etc. > > Now, support of running modes in non OSGi environments is much easier > than supporting it in an OSGi env where services come from various > bundles and might be optional etc. > > So, I would like to get your opinion if you think that this is useful > for OSGi environments at all.
Configuration comes from the ConfigurationAdmin Service. I suggest, that we would base an implementation of such a feature on the Configuration Admin Service. We might well think of actually provide such an extension in the Apache Felix Configuration Admin implementation. This would be something like a "configuration switch". Regards Felix
