geronimo-xbean-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Austin <>
Subject Using maps as properties for a bean
Date Fri, 22 Dec 2006 18:22:59 GMT
I am trying to set a map property on a bean using xbean-2.6 and all I
seem to get back is an empty map.

The bean config file is similar to as shown below.

         <entry key="sideBar" value="hello" />

If I add a log statement to MyObject.setMapProperty it is called but the
value is {}. also when I then get the values later it is also the empty
collection (I was wondering if the map was set first and then populated

class MyObject {
  public void setMapProperty(Map values) {
    this.mapProperty = values;

Any ideas? Have I got the syntax right?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message