/** * This method allows to replace the current {@link org.apache.tamaya.spi.ConfigurationContext} with a new * instance. This can be used to update the context with a new one, e.g. because some of the configuration * data has changed and should be updated. It is the responsibility of the ConfigurationProvider to trigger * corresponding update events for the current {@link org.apache.tamaya.Configuration}, so observing * listeners can do whatever is appropriate to react to any given configuration changes. * * @param context the new ConfigurationContext to be applied. * @throws java.lang.UnsupportedOperationException if the current provider is read-only and does not support * applying a new ConfigurationContext. */ public static void setConfigurationContext(ConfigurationContext context) { PROVIDER_SPI.setConfigurationContext(context); }
/** * This method allows to replace the current {@link org.apache.tamaya.spi.ConfigurationContext} with a new * instance. This can be used to update the context with a new one, e.g. because some of the configuration * data has changed and should be updated. It is the responsibility of the ConfigurationProvider to trigger * corresponding update events for the current {@link org.apache.tamaya.Configuration}, so observing * listeners can do whatever is appropriate to react to any given configuration changes. * * @param context the new ConfigurationContext to be applied. * @throws java.lang.UnsupportedOperationException if the current provider is read-only and does not support * applying a new ConfigurationContext. * @deprecated Use #setConfiguration(Configuration) instead of. */ @Deprecated public static void setConfigurationContext(ConfigurationContext context) { spi().setConfigurationContext(context); }