Class ConfigurationUpdater

java.lang.Object
org.wso2.carbon.mediation.configadmin.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)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    update(org.apache.axiom.om.OMElement configElement)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • update

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