Example usage for org.apache.commons.pipeline Pipeline setEnv

List of usage examples for org.apache.commons.pipeline Pipeline setEnv

Introduction

In this page you can find the example usage for org.apache.commons.pipeline Pipeline setEnv.

Prototype

public void setEnv(String key, Object value) 

Source Link

Document

Sets the value corresponding to the specified environment variable key.

Usage

From source file:edu.scripps.fl.pipeline.PipelineUtils.java

public Pipeline createPipeline(URL url, Object feed, Map<String, Object> globals)
        throws PipelineCreationException {
    Pipeline pipeline = createPipeline(url, feed);
    for (Map.Entry<String, Object> entry : globals.entrySet())
        pipeline.setEnv(entry.getKey(), entry.getValue());
    return pipeline;
}