On 28.12.2006 09:36, Carsten Ziegeler wrote:

What's wrong with property injection?

The current sitemap features do not require the component implementation
to have support for a mime-type (or a label), so they don't need to have
a property for that.
We could use properties for that, with the (minimal) cost of forcing
each implementation to take care of it.

The label has nothing to do with component configuration, so I'd avoid putting it into the components.

and the label is the name after the slash, in this case "mySerializer". It's not the most elegant way but with C3 we can reconsider it.

The label is not the component name (or type) - the label is used for
the cocoon-view feature, e.g. the file generator has the label "content".

Exactly. Isn't it possible to add some additional attribute cocoon:label (or similar) and handle this in a special Cocoon BeanFactory? If there is nothing like that I wonder how you want to manage pipeline specific data at all. It would probably be necessary to extend the component interfaces with additional methods for retrieving such attributes (e.g. getLabel()).

Jörg

Reply via email to