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

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


    return ports;
  }

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


      ports.clear();
    } else {
      Iterator<Map.Entry<String, DefaultInputPortContext>> iter = ports.entrySet().iterator();
      while (iter.hasNext()) {
        Map.Entry<String, DefaultInputPortContext> entry = iter.next();
        DefaultInputPortContext port = entry.getValue();
        InputPortContext match = null;
        for (InputPortContext 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 (InputPortContext port : update.ports()) {
        if (!ports.containsKey(port.name())) {
          ports.put(port.name(), DefaultInputPortContext.Builder.newBuilder(port).build().setInputContext(this));
        }
      }
    }
    super.notify(this);
  }
View Full Code Here

TOP

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

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.