1 16 package org.apache.cocoon.generation; 17 18 import org.apache.avalon.framework.parameters.Parameters; 19 import org.apache.cocoon.ProcessingException; 20 import org.apache.cocoon.environment.SourceResolver; 21 import org.apache.cocoon.xml.AbstractXMLProducer; 22 import org.xml.sax.SAXException ; 23 24 import java.io.IOException ; 25 import java.util.Map ; 26 27 36 public abstract class AbstractGenerator 37 extends AbstractXMLProducer 38 implements Generator { 39 40 41 protected SourceResolver resolver; 42 43 protected Map objectModel; 44 45 protected Parameters parameters; 46 47 protected String source; 48 49 53 public void setup(SourceResolver resolver, Map objectModel, String src, Parameters par) 54 throws ProcessingException, SAXException , IOException { 55 this.resolver=resolver; 56 this.objectModel=objectModel; 57 this.source=src; 58 this.parameters=par; 59 } 60 61 64 public void recycle() { 65 super.recycle(); 66 this.resolver = null; 67 this.objectModel = null; 68 this.source = null; 69 this.parameters = null; 70 } 71 72 } 73 | Popular Tags |