*/
private void registerDeployer(AxisConfiguration axisConfig, SynapseEnvironment synapseEnvironment)
throws AxisFault {
SynapseConfiguration synCfg = synapseEnvironment.getSynapseConfiguration();
DeploymentEngine deploymentEngine = (DeploymentEngine) axisConfig.getConfigurator();
SynapseArtifactDeploymentStore deploymentStore = synCfg.getArtifactDeploymentStore();
String synapseConfigPath = ServiceBusUtils.getSynapseConfigAbsPath(
synapseEnvironment.getServerContextInformation());
String templateDirPath = synapseConfigPath
+ File.separator + MultiXMLConfigurationBuilder.TEMPLATES_DIR;
for (TemplateMediator seqTempl : synCfg.getSequenceTemplates().values()) {
if (seqTempl.getFileName() != null) {
deploymentStore.addRestoredArtifact(
templateDirPath + File.separator + seqTempl.getFileName());
}
}
for (Template epTempl : synCfg.getEndpointTemplates().values()) {
if (epTempl.getFileName() != null) {
deploymentStore.addRestoredArtifact(
templateDirPath + File.separator + epTempl.getFileName());
}
}
deploymentEngine.addDeployer(new TemplateDeployer(),
templateDirPath, ServiceBusConstants.ARTIFACT_EXTENSION);