Skip to content

Instantly share code, notes, and snippets.

@qmx
Forked from matzew/gist:4078909
Created November 15, 2012 14:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qmx/4078919 to your computer and use it in GitHub Desktop.
Save qmx/4078919 to your computer and use it in GitHub Desktop.
URL rootUrlServerOne = new URL("http://foooo.rhcloud.com/todo-server");
URL rootUrlServerTwo = new URL("http://baaaaarrrr.rhcloud.com/todo-server");
Pipeline pipeline = new Pipeline(rootUrlServerOne);
PipeConfig<Project> config1 = new PipeConfig<Project>(Project.class);
PipeConfig<Task> config2 = new PipeConfig<Task>(rootUrlServerTwo, Task.class);
Pipe<Project> projects = pipeline.pipe(config1);
Pipe<Task> taks = pipeline.pipe(config2);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment