[jira] Commented: (XBEAN-36) [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value.
[ http://issues.apache.org/jira/browse/XBEAN-36?page=comments#action_12426997 ] David Jencks commented on XBEAN-36: --- I _think_ that some jdk 1.5 specific code was installed in this patch -- at least new IllegalArgumentException(String, Throwable) Do we aim to preserve jdk 1.4 support? [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value. Key: XBEAN-36 URL: http://issues.apache.org/jira/browse/XBEAN-36 Project: XBean Issue Type: New Feature Components: spring Reporter: Hiram Chirino Assigned To: Hiram Chirino Fix For: 2.6 Attachments: XBEAN-36.patch This patch allows you to configure a PropertyEditor for any property. For example, if you annotate a property as follows: /** * Sets the amount of beer remaining in the keg (in ml) * * @org.apache.xbean.Property propertyEditor=org.apache.xbean.spring.example.MilliLittersPropertyEditor * @param remaining */ public void setRemaining(long remaining) { this.remaining = remaining; } Then when you configure the value of the 'remaining' property in xbean then the MilliLittersPropertyEditor will be used to convert the string value to a long. In the test case, our MilliLittersPropertyEditor can handle converting different units of measurement to ml. For example: beans xmlns:x=http://xbean.apache.org/schemas/pizza; x:keg id=ml1000 remaining=1000 ml/ x:keg id=pints5 remaining=5 pints/ x:keg id=liter20 remaining=20 liter/ x:keg id=empty remaining=0/ /beans -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (XBEAN-36) [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value.
[ http://issues.apache.org/jira/browse/XBEAN-36?page=comments#action_12427039 ] Hiram Chirino commented on XBEAN-36: good catch. I'll fix it in a jiffy. [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value. Key: XBEAN-36 URL: http://issues.apache.org/jira/browse/XBEAN-36 Project: XBean Issue Type: New Feature Components: spring Reporter: Hiram Chirino Assigned To: Hiram Chirino Fix For: 2.6 Attachments: XBEAN-36.patch This patch allows you to configure a PropertyEditor for any property. For example, if you annotate a property as follows: /** * Sets the amount of beer remaining in the keg (in ml) * * @org.apache.xbean.Property propertyEditor=org.apache.xbean.spring.example.MilliLittersPropertyEditor * @param remaining */ public void setRemaining(long remaining) { this.remaining = remaining; } Then when you configure the value of the 'remaining' property in xbean then the MilliLittersPropertyEditor will be used to convert the string value to a long. In the test case, our MilliLittersPropertyEditor can handle converting different units of measurement to ml. For example: beans xmlns:x=http://xbean.apache.org/schemas/pizza; x:keg id=ml1000 remaining=1000 ml/ x:keg id=pints5 remaining=5 pints/ x:keg id=liter20 remaining=20 liter/ x:keg id=empty remaining=0/ /beans -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (XBEAN-36) [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value.
[ http://issues.apache.org/jira/browse/XBEAN-36?page=comments#action_12426011 ] Matt Hogstrom commented on XBEAN-36: +1 [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value. Key: XBEAN-36 URL: http://issues.apache.org/jira/browse/XBEAN-36 Project: XBean Issue Type: New Feature Components: spring Reporter: Hiram Chirino Assigned To: Hiram Chirino Fix For: 2.6 Attachments: XBEAN-36.patch This patch allows you to configure a PropertyEditor for any property. For example, if you annotate a property as follows: /** * Sets the amount of beer remaining in the keg (in ml) * * @org.apache.xbean.Property propertyEditor=org.apache.xbean.spring.example.MilliLittersPropertyEditor * @param remaining */ public void setRemaining(long remaining) { this.remaining = remaining; } Then when you configure the value of the 'remaining' property in xbean then the MilliLittersPropertyEditor will be used to convert the string value to a long. In the test case, our MilliLittersPropertyEditor can handle converting different units of measurement to ml. For example: beans xmlns:x=http://xbean.apache.org/schemas/pizza; x:keg id=ml1000 remaining=1000 ml/ x:keg id=pints5 remaining=5 pints/ x:keg id=liter20 remaining=20 liter/ x:keg id=empty remaining=0/ /beans -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (XBEAN-36) [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value.
[ http://issues.apache.org/jira/browse/XBEAN-36?page=comments#action_12426012 ] David Jencks commented on XBEAN-36: --- RTC +1 [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value. Key: XBEAN-36 URL: http://issues.apache.org/jira/browse/XBEAN-36 Project: XBean Issue Type: New Feature Components: spring Reporter: Hiram Chirino Assigned To: Hiram Chirino Fix For: 2.6 Attachments: XBEAN-36.patch This patch allows you to configure a PropertyEditor for any property. For example, if you annotate a property as follows: /** * Sets the amount of beer remaining in the keg (in ml) * * @org.apache.xbean.Property propertyEditor=org.apache.xbean.spring.example.MilliLittersPropertyEditor * @param remaining */ public void setRemaining(long remaining) { this.remaining = remaining; } Then when you configure the value of the 'remaining' property in xbean then the MilliLittersPropertyEditor will be used to convert the string value to a long. In the test case, our MilliLittersPropertyEditor can handle converting different units of measurement to ml. For example: beans xmlns:x=http://xbean.apache.org/schemas/pizza; x:keg id=ml1000 remaining=1000 ml/ x:keg id=pints5 remaining=5 pints/ x:keg id=liter20 remaining=20 liter/ x:keg id=empty remaining=0/ /beans -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (XBEAN-36) [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value.
[ http://issues.apache.org/jira/browse/XBEAN-36?page=comments#action_12426015 ] Jeff Genender commented on XBEAN-36: +1 [RTC] Support annotating properties with the ProperyEditor that should be used when wiring in the value. Key: XBEAN-36 URL: http://issues.apache.org/jira/browse/XBEAN-36 Project: XBean Issue Type: New Feature Components: spring Reporter: Hiram Chirino Assigned To: Hiram Chirino Fix For: 2.6 Attachments: XBEAN-36.patch This patch allows you to configure a PropertyEditor for any property. For example, if you annotate a property as follows: /** * Sets the amount of beer remaining in the keg (in ml) * * @org.apache.xbean.Property propertyEditor=org.apache.xbean.spring.example.MilliLittersPropertyEditor * @param remaining */ public void setRemaining(long remaining) { this.remaining = remaining; } Then when you configure the value of the 'remaining' property in xbean then the MilliLittersPropertyEditor will be used to convert the string value to a long. In the test case, our MilliLittersPropertyEditor can handle converting different units of measurement to ml. For example: beans xmlns:x=http://xbean.apache.org/schemas/pizza; x:keg id=ml1000 remaining=1000 ml/ x:keg id=pints5 remaining=5 pints/ x:keg id=liter20 remaining=20 liter/ x:keg id=empty remaining=0/ /beans -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira