1 16 package org.apache.cocoon; 17 18 import java.util.Map ; 19 20 import org.apache.avalon.framework.activity.Disposable; 21 import org.apache.avalon.framework.component.Component; 22 import org.apache.avalon.framework.thread.ThreadSafe; 23 import org.apache.cocoon.components.pipeline.ProcessingPipeline; 24 import org.apache.cocoon.environment.Environment; 25 26 33 public final class ProcessorWrapper 34 implements Processor, Component, Disposable, ThreadSafe { 35 36 private Processor processor; 37 38 public void dispose() { 39 this.processor = null; 40 } 41 42 public ProcessorWrapper(Processor processor) { 43 this.processor = processor; 44 } 45 46 49 public boolean process(Environment environment) 50 throws Exception { 51 return this.processor.process(environment); 52 } 53 54 59 public ProcessingPipeline buildPipeline(Environment environment) 60 throws Exception { 61 return this.processor.buildPipeline(environment); 62 } 63 64 68 public Map getComponentConfigurations() { 69 return this.processor.getComponentConfigurations(); 70 } 71 72 76 public Processor getRootProcessor() { 77 return this.processor.getRootProcessor(); 78 } 79 80 } 81 | Popular Tags |