The Artima Developer Community
Sponsored Link

Java Buzz Forum
Spring ME Supporting Map Configuration

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Wilfred Springer

Posts: 176
Nickname: springerw
Registered: Sep, 2006

Wilfred Springer is a Software Architect at Xebia
Spring ME Supporting Map Configuration Posted: Feb 22, 2009 1:22 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Wilfred Springer.
Original Post: Spring ME Supporting Map Configuration
Feed Title: Distributed Reflections of the Third Kind
Feed URL: http://blog.flotsam.nl/feeds/posts/default/-/Java
Feed Description: Anything coming to my mind having to do with Java
Latest Java Buzz Posts
Latest Java Buzz Posts by Wilfred Springer
Latest Posts From Distributed Reflections of the Third Kind

Advertisement
As you may or may not know, Spring ME is aiming to be compliant with classic Spring. That is, a Spring ME configuration file is expected to work with classic Spring as well. However, it does remain a subset of classic Spring. There are some things not supported, and there are some things that will never be supported. One of the things missing so far was support for <map/> configuration. So, configuration files like these:

<?xml version="1.0" encoding="UTF-8"?>
<beans>

<bean id="indexHolder" class="me.springframework.di.spring.CourseIndexHolder">
<property name="index">
<map>
<entry key="coding">
<bean class="me.springframework.di.spring.Course">
<property name="topic" value="C++"/>
</bean>
</entry>
<entry key="modeling">
<bean class="me.springframework.di.spring.Course">
<property name="topic" value="UML"/>
</bean>
</entry>
</map>
</property>
</bean>

</beans>
...would fail. But the good news is: support for map configuration is has just been added to the trunk. So the above is perfectly valid if you happen to be using the version of the trunk.

Note that it is already compliant with classic Spring in many ways. So it does allow you to use keys based on beans instead of String literals, as an example. (See SPRINGME-4.)

Read: Spring ME Supporting Map Configuration

Topic: Top 10 Useful & Eye-candy Blog Footer Designs Previous Topic   Next Topic Topic: Links for 2009-02-17 [del.icio.us]

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use