001 // Copyright 2010 Waterken Inc. under the terms of the MIT X license
002 // found at http://www.opensource.org/licenses/mit-license.html
003 package org.waterken.pipelined;
004
005 /**
006 * A pipeline factory and tester.
007 */
008 public interface PlugNPlay {
009
010 /**
011 * Creates a promise pipeline.
012 */
013 PlugNPlay play();
014
015 /**
016 * Receives a promise pipeline.
017 * @param player promise pipeline
018 */
019 PlugNPlay plug(PlugNPlay player);
020 }