Announcement Announcement Module
Collapse
No announcement yet.
instantiate bean map programmatically Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • instantiate bean map programmatically

    Hi guys,

    please any idea how to create bean map programmatically? I can't find a way how to accomplish this using the BeanDefinitionBuilder ...

    the XML representation:

    <bean id="myBean" class="test.MyClass>
    <property name="prop" value="propVal" />
    <property name="myMap">
    <map>
    <entry key="entry1" value="e1val"/>
    <entry key="entry2" value="e2val"/>
    </map>
    </property>

    </bean>

    thank in advance
    YF

  • #2
    hm - stupid question

    hm - it was probably stupid question - I will simply create map and add it as property value using BeanDefinitionBuilder.addPropertyValue() - I was thinking in bean references ... sorry - hope this is correct

    regards,
    YF

    Comment

    Working...
    X