Ejemplo n.º 1
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);
    }
  }
Ejemplo n.º 2
0
  public void init(SynapseEnvironment se) {
    synapseEnv = se;
    if (onCompleteSequence != null) {
      onCompleteSequence.init(se);
    } else if (onCompleteSequenceRef != null) {
      SequenceMediator referredOnCompleteSeq =
          (SequenceMediator) se.getSynapseConfiguration().getSequence(onCompleteSequenceRef);

      if (referredOnCompleteSeq == null || referredOnCompleteSeq.isDynamic()) {
        se.addUnavailableArtifactRef(onCompleteSequenceRef);
      }
    }
  }
Ejemplo n.º 3
0
  public void init(SynapseEnvironment se) {

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

        if (targetSequence == null || targetSequence.isDynamic()) {
          se.addUnavailableArtifactRef(target.getSequenceRef());
        }
      }
      Endpoint endpoint = target.getEndpoint();
      if (endpoint != null) {
        endpoint.init(se);
      }
    }
  }