Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
2.1.0
-
None
-
None
Description
Map parameters have this convenient XML mapping
<myPropName>
<key>value</key>
</myPropName>
The corresponding syntax for Properties is much more verbose:
<myPropName>
<property><name>x</name><value>y</value</property>
</myPropName>
This seems like punishment to the plugin user. In my case, I am internally targetting an API that uses Properties, so it was really convenient to just declare at that type. However, the XML is so clumsy that I'm now going to go change it to a map and manually populate a Properties object. I wish that there was some @ to allow me to declare the variable as Properties and get the Map syntax.
Attachments
Issue Links
- duplicates
-
MNG-4992 Allow to configure plugin parameters of type java.util.Properties just like a map
- Closed