cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Carsten Ziegeler <cziege...@apache.org>
Subject Re: extending spring configuration via blocks
Date Tue, 18 Mar 2008 12:11:57 GMT
Thorsten Scherler wrote:
> Hi all,
> 
> I am looking for information how to extend a spring bean that I have
> defined in the core via blocks/plugins.
> 
> I have following configuration in my main spring context:
>   <bean id="org.apache.droids.helper.factories.HandlerFactory"
>     class="org.apache.droids.helper.factories.HandlerFactory">
>     <property name="map">
>       <map>
>         <entry key="save" value-ref="org.apache.droids.handle.Save"/>
>         <entry key="sysout"
> value-ref="org.apache.droids.handle.Sysout"/>
>       </map>
>     </property>
>   </bean>
> 
> I have a block that should extend
> "org.apache.droids.helper.factories.HandlerFactory" adding a new entry
> to the map. Meaning I want to keep the old configuration and on top want
> to add some entries.
> 
> Is this possible and if so how?
I think you're looking for a dynamic map, right?

Have a look here:
http://cocoon.apache.org/subprojects/configuration/1.0/spring-configurator/1.0/1400_1_1.html

HTH
Carsten


-- 
Carsten Ziegeler
cziegeler@apache.org

Mime
View raw message