Package net.kuujo.vertigo.io.port.impl

Examples of net.kuujo.vertigo.io.port.impl.DefaultOutputPortContext


      ports.clear();
    } else {
      Iterator<Map.Entry<String, DefaultOutputPortContext>> iter = ports.entrySet().iterator();
      while (iter.hasNext()) {
        Map.Entry<String, DefaultOutputPortContext> entry = iter.next();
        DefaultOutputPortContext port = entry.getValue();
        OutputPortContext match = null;
        for (OutputPortContext p : update.ports()) {
          if (port.name().equals(p.name())) {
            match = p;
            break;
          }
        }
        if (match != null) {
          port.notify(match);
        } else {
          port.notify(null);
          iter.remove();
        }
      }

      for (OutputPortContext port : update.ports()) {
        if (!ports.containsKey(port.name())) {
          ports.put(port.name(), DefaultOutputPortContext.Builder.newBuilder(port).build().setOutputContext(this));
        }
      }
    }
    super.notify(this);
  }
View Full Code Here


    return ports;
  }

  @Override
  public OutputPortContext port(String name) {
    DefaultOutputPortContext port = ports.get(name);
    if (port != null) {
      port.setOutputContext(this);
    }
    return port;
  }
View Full Code Here

TOP

Related Classes of net.kuujo.vertigo.io.port.impl.DefaultOutputPortContext

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.