cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@mobilebox.pl>
Subject Re: Defining a generator as Spring bean
Date Fri, 24 Nov 2006 11:26:56 GMT
Reinhard Poetz wrote:
>   <bean name="org.apache.cocoon.generation.Generator/daisy"
>     class="org.daisycms.clientapp.cocoon.DaisyGenerator">
>     <property name="daisyAccessFacade"
> ref="org.daisycms.clientapps.facade"/>
>   </bean>

just a reminder, same goes for apples:

in applicationContext.xml:

<bean id="storeInvestmentApple" parent="xmlRequestApple"
class="com.mobilebox.xxx.pi.server.mobileapi.apples.StoreInvestmentApple">
    <property name="investmentParser" ref="investmentParser"/>
    <property name="investmentService" ref="investmentService"/>
</bean>

sitemap.xmap:

<map:flow language="service-apples"/>
<map:pipelines>
    <map:pipeline type="caching">
        <map:match pattern="*">
            <map:call function="{1}Apple"/>
        </map:match>
    </map:pipeline>
</map:pipelines>


-- 
Leszek Gawron                                    CTO at MobileBox Ltd.


Mime
View raw message