Class SynapseEnvironmentServiceImpl
java.lang.Object
org.wso2.carbon.mediation.initializer.services.SynapseEnvironmentServiceImpl
- All Implemented Interfaces:
SynapseEnvironmentService
-
Constructor Summary
ConstructorsConstructorDescriptionSynapseEnvironmentServiceImpl(org.apache.synapse.core.SynapseEnvironment synapseEnvironment, int tenantId, org.apache.axis2.context.ConfigurationContext configCtx) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.axis2.context.ConfigurationContextGet the ConfigurationContext for this SynapseConfigurationorg.apache.synapse.core.SynapseEnvironmentRetrieve the synapse configurationintGet the tenant id corresponding to this synapse configuration.voidsetConfigurationContext(org.apache.axis2.context.ConfigurationContext configurationContext) voidsetSynapseEnvironment(org.apache.synapse.core.SynapseEnvironment synapseEnvironment) Set the SynapseEnvironment
-
Constructor Details
-
SynapseEnvironmentServiceImpl
public SynapseEnvironmentServiceImpl(org.apache.synapse.core.SynapseEnvironment synapseEnvironment, int tenantId, org.apache.axis2.context.ConfigurationContext configCtx)
-
-
Method Details
-
getTenantId
public int getTenantId()Description copied from interface:SynapseEnvironmentServiceGet the tenant id corresponding to this synapse configuration.- Specified by:
getTenantIdin interfaceSynapseEnvironmentService- Returns:
- integer value of the tenant id
-
getSynapseEnvironment
public org.apache.synapse.core.SynapseEnvironment getSynapseEnvironment()Description copied from interface:SynapseEnvironmentServiceRetrieve the synapse configuration- Specified by:
getSynapseEnvironmentin interfaceSynapseEnvironmentService- Returns:
- synapse configuration
-
setSynapseEnvironment
public void setSynapseEnvironment(org.apache.synapse.core.SynapseEnvironment synapseEnvironment) Description copied from interface:SynapseEnvironmentServiceSet the SynapseEnvironment- Specified by:
setSynapseEnvironmentin interfaceSynapseEnvironmentService- Parameters:
synapseEnvironment- SynapseEnvrionment
-
getConfigurationContext
public org.apache.axis2.context.ConfigurationContext getConfigurationContext()Description copied from interface:SynapseEnvironmentServiceGet the ConfigurationContext for this SynapseConfiguration- Specified by:
getConfigurationContextin interfaceSynapseEnvironmentService- Returns:
- the ConfigurationContext
-
setConfigurationContext
public void setConfigurationContext(org.apache.axis2.context.ConfigurationContext configurationContext)
-