Class SequenceAdminUtil


  • public class SequenceAdminUtil
    extends Object
    • Constructor Detail

      • SequenceAdminUtil

        public SequenceAdminUtil()
    • Method Detail

      • getSynapseConfiguration

        public static org.apache.synapse.config.SynapseConfiguration getSynapseConfiguration()
                                                                                      throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getSynapseConfigFromConfigCtx

        public static org.apache.synapse.config.SynapseConfiguration getSynapseConfigFromConfigCtx()
                                                                                            throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getSynapseEnvironment

        public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment()
                                                                                throws org.wso2.carbon.sequences.common.SequenceEditorException
        Helper method to retrieve the Synapse environment from the relevant axis configuration
        Returns:
        extracted SynapseEnvironment from the relevant AxisConfiguration
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getSynapseEnvironmentFromConfigCtx

        public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironmentFromConfigCtx()
                                                                                             throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getSynapseEnvironment

        public static org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment​(org.apache.axis2.engine.AxisConfiguration axisCfg)
      • getMediationPersistenceManager

        public static org.wso2.carbon.mediation.initializer.persistence.MediationPersistenceManager getMediationPersistenceManager()
                                                                                                                            throws org.wso2.carbon.sequences.common.SequenceEditorException
        Helper method to get the persistence manger
        Returns:
        persistence manager for this configuration context
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getServerConfigurationInformation

        public static org.apache.synapse.ServerConfigurationInformation getServerConfigurationInformation()
                                                                                                   throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getServerContextInformation

        public static org.apache.synapse.ServerContextInformation getServerContextInformation()
                                                                                       throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException
      • getLock

        public static Lock getLock()
                            throws org.wso2.carbon.sequences.common.SequenceEditorException
        Throws:
        org.wso2.carbon.sequences.common.SequenceEditorException