All Downloads are FREE. Search and download functionalities are using the official Maven repository.

xapi.process.impl.IOProcess Maven / Gradle / Ivy

Go to download

This module exists solely to package all other gwt modules into a single uber jar. This makes deploying to non-mavenized targets much easier. Of course, you would be wise to inherit your dependencies individually; the uber jar is intended for projects like collide, which have complex configuration, and adding many jars would be a pain.

The newest version!
package xapi.process.impl;



public class IOProcess  extends AbstractProcess{

  public static interface Input {
    T input();
  }
  public static interface Output {
    boolean output(T object);
  }
  private Output out;
  public IOProcess(Output output) {
    this.out = output;
  }

//  public boolean process(Input provider) throws Exception {
//    onStart();
//    try {
//      T value, previous = null;
//      boolean success = true;
//      while ((value = provider.input())!=null) {
//        if (value == previous)
//          break;
//        success &= out.output(value);
//        previous = value;
//      }
//      return success;
//    }finally {
//      onStop();
//    }
//  }

//  public boolean process(T object) throws Exception {
//    onStart();
//    try {
//      return out.output(object);
//    }finally {
//      onStop();
//    }
//  }

  @Override
  public boolean process(float milliTimeLimit) throws Exception {
    return false;
  }




}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy