Class ConfigurationUpdater


  • public class ConfigurationUpdater
    extends Object
    Use an instance of this class to update the existing SynapseConfiguration of a server. This will gracefully cleanup the existing configuration and apply the provided new configuration. In case of an error, it will fallback to the old configuration. This class is not thread safe and hence should not be used by multiple threads.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfigurationUpdater​(org.apache.synapse.ServerContextInformation serverContextInformation, org.apache.axis2.context.ConfigurationContext configurationContext, org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager persistenceManager, org.wso2.carbon.registry.core.session.UserRegistry configRegistry)  
    • Constructor Detail

      • ConfigurationUpdater

        public ConfigurationUpdater​(org.apache.synapse.ServerContextInformation serverContextInformation,
                                    org.apache.axis2.context.ConfigurationContext configurationContext,
                                    org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager persistenceManager,
                                    org.wso2.carbon.registry.core.session.UserRegistry configRegistry)
    • Method Detail

      • update

        public void update​(org.apache.axiom.om.OMElement configElement)
                    throws org.apache.axis2.AxisFault
        Throws:
        org.apache.axis2.AxisFault