At the end of the day, its really just asking that the dtd/container help me take advantage of the PropertyEditors wherever I can. I would say that, personally, there are probably not enough instances of the issue to warrant changing the dtd, etc...just be verbose in these cases. Thats why I posted the question...to see if others would find it useful.
Perhaps the example was too trivial. In my case, this is what I wound up doing:
Code:
<bean id="matchEndingIn_TX"
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
<property name="properties">
<props>
<prop key="*_TX">PROPAGATION_REQUIRED,-RecordException</prop>
</props>
</property>
</bean>
What I was trying to do originally (before I noticed I could set it as properties) was:
Code:
<bean id="matchEndingIn_TX"
class="org.springframework.transaction.interceptor.NameMatchTransactionAttributeSource">
<property name="nameMap">
<map>
<entry key="*_TX"><value>PROPAGATION_REQUIRED,-RecordException</value></prop>
</map>
</property>
</bean>
which, of course, didn't work. So this is where I started thinking it would be nice to be able to tell spring the underlying type that I wanted it to convert the String to. I could have used an inner bean, but that would have been really verbose (actually at the time I was needing it, I thought it would be even more verbose because I didn't notice I could set the Propogation Behavior and Isolation Level by name).
So, the setProperties method lets me take advantage of the Property Editor as I wanted...but it would be nice if the solution were more globally applicable. I.E. instead of saying: "anywhere you have a map property whose values can be fairly complicated and would like to be able to take advantage of property editors for the values, then also supply a setProperties method that will directly convert using the appropriate property editor", I think it would be nice to instead say: "anywhere you have a map/list/Object/generic property whose values can be fairly complicated and would like to be able to take advantage of property editors for the values, just specify the type in the value tag and the property will be converted using the associated property editor"