The problem in doing this refactoring is that BeanMetaDataBuilder (which can be changed)
and JBoss XB (which cannot be changed) do something like:
| BeanMetaData bmd = ...;
| HashSet<PropertyMetaData> properties = bmd.getProperties();
| if (properties == null)
| {
| properties = new HashSet<PropertyMetaData>();
| bmd.setProperties(properties);
| }
| properties.add(propertyMetaData1);
| properties.add(propertyMetaData2);
|
So if we copy the set into a map when calling BMD.setProperties() the properties.add()
calls do not get reflected in the underlying data in the map. I have looked into writing a
Map enabled wrapper around the passed in set, but since we will need to work with the set
underneath there does not seem to be that much point.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4249082#...
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&a...