public class RegistryBasedSynapseConfigSerializer extends Object
SynapseConfiguration
to a registry space,
which defaults to /carbon/synapse-config
The configuration element hierarchy used is;
Constructor and Description |
---|
RegistryBasedSynapseConfigSerializer(org.wso2.carbon.registry.core.session.UserRegistry registry,
String configName)
Constructs the serializer and sets the registry to be used
|
Modifier and Type | Method and Description |
---|---|
void |
serializeConfiguration(org.apache.synapse.config.SynapseConfiguration configuration)
Serialize and persists the
SynapseConfiguration to the
registry space. |
public RegistryBasedSynapseConfigSerializer(org.wso2.carbon.registry.core.session.UserRegistry registry, String configName)
registry
- to be used to serialize the configuration elementsconfigName
- cpnfiguration namepublic void serializeConfiguration(org.apache.synapse.config.SynapseConfiguration configuration)
SynapseConfiguration
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.configuration
- to be serializedCopyright © 2017 WSO2. All rights reserved.