public void destroy() { TemplateMediator templateMediator = synapseEnv.getSynapseConfiguration().getSequenceTemplate(targetTemplate); if (templateMediator == null || templateMediator.isDynamic()) { synapseEnv.removeUnavailableArtifactRef(targetTemplate); } }
public void init(SynapseEnvironment se) { synapseEnv = se; TemplateMediator templateMediator = se.getSynapseConfiguration().getSequenceTemplate(targetTemplate); if (templateMediator == null || templateMediator.isDynamic()) { // undefined or dynamic templates are treated as unavailable // in the environment. // At the time of their initialization, these will be marked as available. se.addUnavailableArtifactRef(targetTemplate); } }