if (log.isDebugEnabled()) {
log.debug("PriorityExecutor Deployment from file : " + fileName + " : Started");
}
try {
PriorityExecutor e = PriorityExecutorFactory.createExecutor(
SynapseConstants.SYNAPSE_NAMESPACE, artifactConfig, true, properties);
if (e != null) {
e.setFileName((new File(fileName)).getName());
if (log.isDebugEnabled()) {
log.debug("PriorityExecutor with name '" + e.getName()
+ "' has been built from the file " + fileName);
}
getSynapseConfiguration().addPriorityExecutor(e.getName(), e);
e.init();
if (log.isDebugEnabled()) {
log.debug("PriorityExecutor Deployment from file : " + fileName + " : Completed");
}
log.info("PriorityExecutor named '" + e.getName()
+ "' has been deployed from file : " + fileName);
return e.getName();
} else {
handleSynapseArtifactDeploymentError("PriorityExecutor Deployment Failed. " +
"The artifact described in the file " + fileName +
" is not a PriorityExecutor");
}