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

Reply via email to