You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Vadim Gritsenko <va...@reverycodes.com> on 2007/12/05 14:03:55 UTC

Re: svn commit: r601301 - in /cocoon/trunk/core/cocoon-pipeline/cocoon-pipeline-components/src: changes/changes.xml main/java/org/apache/cocoon/transformation/pagination/Paginator.java

thorsten@apache.org wrote:
> Author: thorsten
> Date: Wed Dec  5 03:36:45 2007
> New Revision: 601301
> 
> URL: http://svn.apache.org/viewvc?rev=601301&view=rev
> Log:
> Fixing paginator to make it useable with spring

I don't think this is the right approach. And IMHO this incorrect approach 
nudges you towards ugly hacks like this.

IIUC, the correct spring way would be to inject parser and any other required 
components directly, without injecting and using ServiceManager. I think I 
already saw this in one of the other springified components.

PS Do you know how recycle() is going to be called for the springified component?

Vadim