public class RegistryBasedSynapseConfigBuilder extends Object
SynapseConfiguration
by using a registry space,
which defaults to /carbon/synapse-config
The configuration element hierarchy has assumed to be;
Constructor and Description |
---|
RegistryBasedSynapseConfigBuilder(org.wso2.carbon.registry.core.session.UserRegistry registry,
String configName,
String synapseXMLLocation,
Properties properties,
boolean failSafeConfigurationLoading)
Constructs the builder and sets the registry to be used
|
Modifier and Type | Method and Description |
---|---|
org.apache.synapse.config.SynapseConfiguration |
getConfiguration()
Builds the
SynapseConfiguration from the registry space. |
void |
handleErrorGracefully(String component,
org.apache.synapse.SynapseException e) |
public RegistryBasedSynapseConfigBuilder(org.wso2.carbon.registry.core.session.UserRegistry registry, String configName, String synapseXMLLocation, Properties properties, boolean failSafeConfigurationLoading)
registry
- to be used to retrieve the configuration elementsconfigName
- configuration namesynapseXMLLocation
- location of the synapse xmlproperties
- the properties from the synapse.properties filefailSafeConfigurationLoading
- to load configurations in a fail safe waypublic org.apache.synapse.config.SynapseConfiguration getConfiguration()
SynapseConfiguration
from the registry space.
If the synapse registry has been specified and there are no content in the rest
of the config space, this method looks for the registry configured in the synapse-registry
to find a synapse.xml file....
If non of the above is able to provide the configuration fall back to the default configuration
public void handleErrorGracefully(String component, org.apache.synapse.SynapseException e)
Copyright © 2021 WSO2. All rights reserved.