org.objectledge.pipeline
Class SimplePipeline

java.lang.Object
  extended by org.objectledge.pipeline.SimplePipeline
All Implemented Interfaces:
Valve

public class SimplePipeline
extends Object
implements Valve

A pipeline composed of a sequence of Valves.

Version:
$Id: SimplePipeline.java,v 1.1 2004/01/23 08:37:30 fil Exp $
Author:
Rafal Krzewski

Field Summary
private  Valve[] valves
           
 
Constructor Summary
SimplePipeline(Valve[] valves)
          Constructs pipeline instance.
 
Method Summary
 void process(Context context)
          Performs the processing.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

valves

private Valve[] valves
Constructor Detail

SimplePipeline

public SimplePipeline(Valve[] valves)
Constructs pipeline instance.

Parameters:
valves - the valves.
Method Detail

process

public void process(Context context)
             throws ProcessingException
Performs the processing.

Each of the configured valves is invoked in order of definition. If an exceptions is thrown by one of the valves, the remaining valves are not invoked.

Specified by:
process in interface Valve
Parameters:
context - the thread's execution context.
Throws:
ProcessingException - if the processing in one of the configured Valves fails.


Copyright © 2003-2006 objectledge.org. All Rights Reserved.