Class RegistryBasedSynapseConfigSerializer
- java.lang.Object
-
- org.wso2.carbon.mediation.initializer.RegistryBasedSynapseConfigSerializer
-
public class RegistryBasedSynapseConfigSerializer extends Object
Serializes theSynapseConfiguration
to a registry space, which defaults to /carbon/synapse-configThe configuration element hierarchy used is;
- CONFIG_REGISTRY/repository/synapse/sequences
- CONFIG_REGISTRY/repository/synapse/endpoints
- CONFIG_REGISTRY/repository/synapse/local-entries
- CONFIG_REGISTRY/repository/synapse/proxy-services
- CONFIG_REGISTRY/repository/synapse/event-sources
- CONFIG_REGISTRY/repository/synapse/synapse-startups
- CONFIG_REGISTRY/repository/synapse/synapse-registry
-
-
Constructor Summary
Constructors Constructor Description RegistryBasedSynapseConfigSerializer(org.wso2.carbon.registry.core.session.UserRegistry registry, String configName)
Constructs the serializer and sets the registry to be used
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
serializeConfiguration(org.apache.synapse.config.SynapseConfiguration configuration)
Serialize and persists theSynapseConfiguration
to the registry space.
-
-
-
Constructor Detail
-
RegistryBasedSynapseConfigSerializer
public RegistryBasedSynapseConfigSerializer(org.wso2.carbon.registry.core.session.UserRegistry registry, String configName)
Constructs the serializer and sets the registry to be used- Parameters:
registry
- to be used to serialize the configuration elementsconfigName
- cpnfiguration name
-
-
Method Detail
-
serializeConfiguration
public void serializeConfiguration(org.apache.synapse.config.SynapseConfiguration configuration)
Serialize and persists theSynapseConfiguration
to the registry space. If the synapse.xml has been loaded from the synapse registry then any change will be local to the server instance and will not be persisted to the specified synapse registry.- Parameters:
configuration
- to be serialized
-
-