cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Hartmann <andr...@apache.org>
Subject Re: [2.2] Servlet service: polymorphism and connections
Date Thu, 26 Feb 2009 09:48:46 GMT
Hi Leszek,

Leszek Gawron schrieb:

[…]

>> E.g. if I instantiate two beans like this:
>>
>>   <bean name="myproject.Service/foo" … />
>>   <bean name="myproject.Service/bar" … />
>>
>> Is this sufficient for accessing the beans via the bean map?
>>
>>   <bean name="my-client-bean">
>>     <property name="services">
>>       <configurator:bean-map type="myproject.Service">
>>     </property>
>>   </bean>
>>
>>   Service foo = (Service) services.get("foo")
> 
> the beans should be named :
> <bean name="foo" … />
> <bean name="bar" … />

thanks for the explanation, it works well.

-- Andreas


-- 
Andreas Hartmann, CTO
BeCompany GmbH
http://www.becompany.ch
Tel.: +41 (0) 43 818 57 01


Mime
View raw message