Skip to content

Instantly share code, notes, and snippets.

@matzew
Created November 15, 2012 14:33
Show Gist options
  • Save matzew/4078909 to your computer and use it in GitHub Desktop.
Save matzew/4078909 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();
PipeConfig<Project> config1 = new PipeConfig<Project>(rootUrlServerOne, Project.class);
PipeConfig<Task> config2 = new PipeConfig<Task>(rootUrlServerOne, 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