cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefano Mazzocchi <>
Subject Re: [C2] Package names
Date Fri, 07 Jul 2000 18:54:56 GMT
Mark, let me tell you: you are a pain in the ass! :)

(it's intended as a compliment)

> Something to think about, if a transformer is both producer/consumer could
> it be thought of in terms of the decorator pattern? That is, a wrapper???

No, I disagree.

A transformer is _both_ a producer and a consumer. So it may be a
"generator wrapper" or a "serializer wrapper", depending on how you
think about it.

By creating the notion of "transformer implements producer, consumer"
you have balanced the two views and, IMO, this makes the pipes more

(unlike SAX2 where a Filter is a generator wrapper, or XSLT where
processors are serializer wrappers)

Cocoon tries to balance between the two creating an independent

Ok, at the end I propose the following naming:

   verb    |    action      |    actor
 generate  | generation     | generator
 transform | transformation | transformer
 serialize | serialization  | serializer
 select    | selection      | selector
 match     | matching       | matcher

then the interface for every component category will be placed in


Please, PLEASE, let's agree on this. 

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

View raw message