cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From stef...@locus.apache.org
Subject cvs commit: xml-cocoon/src/org/apache/cocoon/serialization FOPSerializer.java
Date Fri, 15 Sep 2000 16:11:40 GMT
stefano     00/09/15 09:11:40

  Modified:    src/org/apache/cocoon/serialization Tag: xml-cocoon2
                        FOPSerializer.java
  Log:
  set the messaging hander _Before_ doing anything
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.4   +7 -6      xml-cocoon/src/org/apache/cocoon/serialization/Attic/FOPSerializer.java
  
  Index: FOPSerializer.java
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/src/org/apache/cocoon/serialization/Attic/FOPSerializer.java,v
  retrieving revision 1.1.2.3
  retrieving revision 1.1.2.4
  diff -u -r1.1.2.3 -r1.1.2.4
  --- FOPSerializer.java	2000/09/05 17:27:28	1.1.2.3
  +++ FOPSerializer.java	2000/09/15 16:11:38	1.1.2.4
  @@ -31,7 +31,7 @@
    * @author <a href="mailto:giacomo.pati@pwr.ch">Giacomo Pati</a>
    *         (PWR Organisation &amp; Entwicklung)
    * @author <a href="mailto:stefano@apache.org">Stefano Mazzocchi</a>
  - * @version CVS $Revision: 1.1.2.3 $ $Date: 2000/09/05 17:27:28 $
  + * @version CVS $Revision: 1.1.2.4 $ $Date: 2000/09/15 16:11:38 $
    *
    */
   public class FOPSerializer extends XMLConsumerBridge implements Serializer, MessageListener
{
  @@ -46,17 +46,18 @@
        */
       public FOPSerializer() {
           this.driver = new Driver();
  -        this.driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer", Version.getVersion());
  -        this.driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
  -        this.driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
  -	    this.driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
  -	    this.driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
   
           // the use of static resources sucks for servlet enviornments
           // since we could have multiple FOP that all logs in this pipe
           // It's a concurrency and security nightmare! (SM)
           MessageHandler.setOutputMethod(MessageHandler.EVENT);
           MessageHandler.addListener(this);
  +
  +        this.driver.setRenderer("org.apache.fop.render.pdf.PDFRenderer", Version.getVersion());
  +        this.driver.addElementMapping("org.apache.fop.fo.StandardElementMapping");
  +        this.driver.addElementMapping("org.apache.fop.svg.SVGElementMapping");
  +        this.driver.addPropertyList("org.apache.fop.fo.StandardPropertyListMapping");
  +        this.driver.addPropertyList("org.apache.fop.svg.SVGPropertyListMapping");
       }
       
       /**
  
  
  

Mime
View raw message