cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <stef...@apache.org>
Subject Re: Image Serializers
Date Sun, 16 Apr 2000 23:03:54 GMT
Dirk-Willem van Gulik wrote:
> 
> On Fri, 14 Apr 2000, Pier P. Fumagalli wrote:
> 
> > Stefano Mazzocchi wrote:
> > >
> > > package org.apache.cocoon.components.image;
> > >
> > > public interface ImageEncoder implements Component {
> > >     public String getContentType();
> > >     public void encode(BufferedImage image, OutputStream out)
> > >     throws IOException;
> > > }
> >
> > I like it .... +1
> 
> You might want to have a bit more control over the encoding. Or you end up
> overriding all of it all the time; as you might want to add signatures to
> your images, per-client gamma correction, different formats with fallback
> where required to common encodings and so on.

You failed to see that if an object implements _both_ ImageEncoder and
Configurable is able to perform image encoding and have configurable
properties.

The JavaBean pattern might be good for automatic introspection (IDEs, or
Ant-like XML mapping), but Cocoon never uses the JavaBean pattern (and
people never seemed to be missing it!)

-- 
Stefano Mazzocchi      One must still have chaos in oneself to be
                          able to give birth to a dancing star.
<stefano@apache.org>                             Friedrich Nietzsche
--------------------------------------------------------------------
 Missed us in Orlando? Make it up with ApacheCON Europe in London!
------------------------- http://ApacheCon.Com ---------------------

Mime
View raw message