1 16 package org.apache.cocoon.components.pipeline; 17 18 import org.apache.avalon.framework.component.Component; 19 import org.apache.avalon.framework.component.Recomposable; 20 import org.apache.avalon.framework.parameters.Parameters; 21 22 import org.apache.cocoon.ProcessingException; 23 import org.apache.cocoon.sitemap.SitemapErrorHandler; 24 import org.apache.cocoon.environment.Environment; 25 import org.apache.cocoon.generation.Generator; 26 import org.apache.cocoon.xml.XMLConsumer; 27 28 import org.apache.excalibur.source.SourceValidity; 29 30 51 public interface ProcessingPipeline extends Component, Recomposable { 52 53 String ROLE = ProcessingPipeline.class.getName(); 54 55 58 void setup(Parameters params); 59 60 66 void release(); 67 68 80 void setGenerator(String role, String source, Parameters param, Parameters hintParam) 81 throws ProcessingException; 82 83 86 Generator getGenerator(); 87 88 91 void informBranchPoint(); 92 93 105 void addTransformer(String role, String source, Parameters param, Parameters hintParam) 106 throws ProcessingException; 107 108 112 void setSerializer(String role, String source, Parameters param, Parameters hintParam, String mimeType) 113 throws ProcessingException; 114 115 119 void setReader(String role, String source, Parameters param, String mimeType) 120 throws ProcessingException; 121 122 126 void setErrorHandler(SitemapErrorHandler errorHandler) 127 throws ProcessingException; 128 129 132 boolean process(Environment environment) 133 throws ProcessingException; 134 135 140 void prepareInternal(Environment environment) 141 throws ProcessingException; 142 143 148 boolean process(Environment environment, XMLConsumer consumer) 149 throws ProcessingException; 150 151 157 SourceValidity getValidityForEventPipeline(); 158 159 165 String getKeyForEventPipeline(); 166 } 167 | Popular Tags |