cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pier Fumagalli (JIRA)" <j...@apache.org>
Subject [jira] Updated: (COCOON-1508) [PATCH] Avalonize TranscoderFactory
Date Tue, 25 Oct 2005 15:35:55 GMT
     [ http://issues.apache.org/jira/browse/COCOON-1508?page=all ]

Pier Fumagalli updated COCOON-1508:
-----------------------------------

    Bugzilla Id:   (was: 34784)
      Component: Blocks: Batik
                     (was: Blocks: (Undefined))
    Description: 
TranscoderFactory configures itself in the constructor, where the available
Transcoders are added through Java code. This patch avalonizes
TranscoderFactory, so it can be configured in cocoon.roles and cocoon.xconf.

Basically you can do 

    <transcoder-factory>
        <transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpeg"/>
        <transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpg"/>
        <transcoder class="org.apache.batik.transcoder.image.PNGTranscoder"
mime-type="image/png"/>
        <transcoder class="org.apache.batik.transcoder.image.TIFFTranscoder"
mime-type="image/tiff"/>
    </transcoder-factory>

in cocoon.xconf

  was:
TranscoderFactory configures itself in the constructor, where the available
Transcoders are added through Java code. This patch avalonizes
TranscoderFactory, so it can be configured in cocoon.roles and cocoon.xconf.

Basically you can do 

    <transcoder-factory>
        <transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpeg"/>
        <transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
mime-type="image/jpg"/>
        <transcoder class="org.apache.batik.transcoder.image.PNGTranscoder"
mime-type="image/png"/>
        <transcoder class="org.apache.batik.transcoder.image.TIFFTranscoder"
mime-type="image/tiff"/>
    </transcoder-factory>

in cocoon.xconf


> [PATCH] Avalonize TranscoderFactory
> -----------------------------------
>
>          Key: COCOON-1508
>          URL: http://issues.apache.org/jira/browse/COCOON-1508
>      Project: Cocoon
>         Type: Improvement
>   Components: Blocks: Batik
>     Versions: 2.1.8-dev (Current SVN)
>  Environment: Operating System: All
> Platform: All
>     Reporter: Jochen Kuhnle
>     Assignee: Cocoon Developers Team
>     Priority: Minor
>  Attachments: conf.zip, patch2.txt
>
> TranscoderFactory configures itself in the constructor, where the available
> Transcoders are added through Java code. This patch avalonizes
> TranscoderFactory, so it can be configured in cocoon.roles and cocoon.xconf.
> Basically you can do 
>     <transcoder-factory>
>         <transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
> mime-type="image/jpeg"/>
>         <transcoder class="org.apache.batik.transcoder.image.JPEGTranscoder"
> mime-type="image/jpg"/>
>         <transcoder class="org.apache.batik.transcoder.image.PNGTranscoder"
> mime-type="image/png"/>
>         <transcoder class="org.apache.batik.transcoder.image.TIFFTranscoder"
> mime-type="image/tiff"/>
>     </transcoder-factory>
> in cocoon.xconf

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message