示例#1
0
 public void destroy() {
   TemplateMediator templateMediator =
       synapseEnv.getSynapseConfiguration().getSequenceTemplate(targetTemplate);
   if (templateMediator == null || templateMediator.isDynamic()) {
     synapseEnv.removeUnavailableArtifactRef(targetTemplate);
   }
 }
示例#2
0
  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);
    }
  }