示例#1
0
 public void destroy() {
   TemplateMediator templateMediator =
       synapseEnv.getSynapseConfiguration().getSequenceTemplate(targetTemplate);
   if (templateMediator == null || templateMediator.isDynamic()) {
     synapseEnv.removeUnavailableArtifactRef(targetTemplate);
   }
 }
  public void destroy() {
    if (onCompleteSequence != null) {
      onCompleteSequence.destroy();
    } else if (onCompleteSequenceRef != null) {
      SequenceMediator referredOnCompleteSeq =
          (SequenceMediator)
              synapseEnv.getSynapseConfiguration().getSequence(onCompleteSequenceRef);

      if (referredOnCompleteSeq == null || referredOnCompleteSeq.isDynamic()) {
        synapseEnv.removeUnavailableArtifactRef(onCompleteSequenceRef);
      }
    }
  }
示例#3
0
  public void destroy() {

    for (Target target : targets) {
      ManagedLifecycle seq = target.getSequence();
      if (seq != null) {
        seq.destroy();
      } else if (target.getSequenceRef() != null) {
        SequenceMediator targetSequence =
            (SequenceMediator)
                synapseEnv.getSynapseConfiguration().getSequence(target.getSequenceRef());

        if (targetSequence == null || targetSequence.isDynamic()) {
          synapseEnv.removeUnavailableArtifactRef(target.getSequenceRef());
        }
      }
      Endpoint endpoint = target.getEndpoint();
      if (endpoint != null) {
        endpoint.destroy();
      }
    }
  }