org.objectledge.pipeline
Class SimplePipeline
java.lang.Object
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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
valves
private Valve[] valves
SimplePipeline
public SimplePipeline(Valve[] valves)
- Constructs pipeline instance.
- Parameters:
valves - the valves.
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.