On Aug 12, 2013, at 13:02 , Felix Meschberger <[email protected]> wrote:
> Somehow this comes up every now and then and I am always lost finding the > definitive answer ... > > Situation A > - Configuration created with getConfiguration(pidA, null) > - ConfigurationAdmin supplies to ManagedService MSA > > Situation B > - Configuration created with getConfiguration(pidB, null) > - consumer calls ConfigurationAdmin.getConfiguration(pidB) > > Situation C > - Configuration created with getConfiguration(pidC) > > IIUIC Situation A creates a dynamic location binding to MSA's bundle. When > the bundle is uninstalled, the location is reset to null. > > In Situation C, the location binding is static to the caller's bundle > location. > > What about Situation B: On the one hand, the same API is used as in Situation > C. Thus one might argue, this results in a static binding to the caller's > bundle. On the other hand, one might argue, that this binding is dynamically > set upon the first time it is used by a bundle. > > What is the correct answer in Situation B ? Static or Dynamic ? Location binding only applies when a configuration object is *created* in response to someone calling getConfiguration (or getFactoryConfiguration), so in B: - the first all makes it dynamic - the second call binds it to the consumer At least, that's my interpretation. :) Greetings, Marcel _______________________________________________ OSGi Developer Mail List [email protected] https://mail.osgi.org/mailman/listinfo/osgi-dev
